terminal
terminal copied to clipboard
Dragging and dropping paths to terminal stops at 16 items
Windows Terminal version
1.15.2713.0
Windows build number
10.0.22000.0
Other Software
No response
Steps to reproduce
- Highlight more than 16 items from an archive (7zip, WinRAR, etc.)
- Drag and drop highlighted items into terminal
Expected Behavior
Should write paths equal to the amount of items highlighted
Actual Behavior
Only writes up to 16 paths
This issue occurs in other UWP or WinAppSDK apps.
It appears that the culprit is that GetStorageItemsAsync() from the drag event only returns up to 16 items.
Perhaps this is a bug from WinRT?
Sure sounds like something outside our control. I'd probably file this at https://github.com/microsoft/WindowsAppSDK/issues? They'd at least have a better way to investigate.
Makes sense, I'll go ahead and file an issue over there.
Sure sounds like something outside our control.
Despite this being an external issue, is this something that we want to fix? I have a workaround solution that appears to work and can open a PR for.
I have a workaround solution that appears to work and can open a PR for.
Oh well let's try that! It wouldn't be the first workaround for weird platform behavior in our codebase 😉
Upon looking into a little further, it appears the issue only occurs when dragging and dropping from archives (7zip, WinRAR, and others). It works fine if you do it from the native file explorer though; probably because it doesn't create any temp files.
I can still open a pull request for this edge case unless you're on the side that it isn't worth fixing.
I'd love to see the PR! If it's something we can work around, let's do it. Thanks @jiejasonliu
:tada:This issue was addressed in #14648, which has now been successfully released as Windows Terminal v1.16.1023 (10231 and 10232).:tada:
Handy links:
:tada:This issue was addressed in #14648, which has now been successfully released as Windows Terminal Preview v1.17.1023.:tada:
Handy links:
Related WindowsAppSDK just for reference https://github.com/microsoft/WindowsAppSDK/issues/3328