Terminal: Drag and drop from File Explorer should put full path at cursor location in Windows Terminal

Created on 20 May 2019  路  7Comments  路  Source: microsoft/terminal

Summary of the new feature/enhancement

Drag and drop of file or folder from File Explorer should behave the same way that it does in conhost. Conhost will add the text of the full path of the item dropped at the current cursor location.

Proposed technical implementation details (optional)

Area-Interaction Help Wanted Issue-Feature Product-Terminal Resolution-Fix-Committed

Most helpful comment

Hi, I've downloaded today's CI build to try this new feature. It sometimes works but randomly stops working. Strangely, the success rate has a noticeable increase if initialCols <= 63:

rDrkDxyqkU

Also, some area is not available for dropping, which I suspect to be related with the DPI scaling (I use 150%).

xuNyAiIRSd

Thank you!

All 7 comments

Ref. #331 for linking purposes.
Thanks!

I'm just wondering if there's any update on when this will be enabled. I saw that there are issues with capturing path information under WSL, but will this be implemented for cmd.exe and/or PowerShell anytime soon? Thanks!

@RobertBernstein At the time of writing, this particular feature hasn't had any progress. It's still sitting on our backlog - it's something that we want to do, but we unfortunately don't think we'll be able to get to before the 1.0 release of the Terminal. We'd be happy to accept a community contribution for this feature!

There's code in Window::_HandleDrop in the conhost code in this repo that already handles a WM_DROPFILES message, it shouldn't be _too_ hard to add a similar listener to the IslandWindow class that writes the path to the input of the TerminalApp.

Hi, I've downloaded today's CI build to try this new feature. It sometimes works but randomly stops working. Strangely, the success rate has a noticeable increase if initialCols <= 63:

rDrkDxyqkU

Also, some area is not available for dropping, which I suspect to be related with the DPI scaling (I use 150%).

xuNyAiIRSd

Thank you!

:tada:This issue was addressed in #4323, which has now been successfully released as Windows Terminal Preview v0.9.433.0.:tada:

Handy links:

@jingyu9575 Maybe opening a new issue?

@SJang1 In today's release, I cannot reproduce the first problem, but the second one is still not fixed. I've opened a new issue #4567.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DieselMeister picture DieselMeister  路  3Comments

Wid-Mimosa picture Wid-Mimosa  路  3Comments

miniksa picture miniksa  路  3Comments

alabuzhev picture alabuzhev  路  3Comments

warpdesign picture warpdesign  路  3Comments