-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for dragging and dropping paths onto the Terminal #4323
Conversation
Not sure I like this- it won't work with universal terminal or anything that doesn't have a wndproc. Is there a XAML event we can listen to? |
You've got a good point - I'll do that instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Giving my official NAK on this one to dequeue it
…ag-path # Conflicts: # src/cascadia/TerminalApp/AppLogic.cpp # src/cascadia/TerminalApp/TerminalPage.cpp # src/cascadia/TerminalApp/TerminalPage.h
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it! We can probably back out all the non-TermControl changes, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor things but nothing worth blocking over.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw nothing that Carlos didn't. Holding the check until Carlos's comments are complete, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love it. Thanks!
Hello @zadjii-msft! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
🎉 Handy links: |
Summary of the Pull Request
I took the code from conhost that handles this and just copy-pasted it into the terminal codebase.
References
Original conhost code:
terminal/src/interactivity/win32/windowproc.cpp
Lines 854 to 889 in 027f122
PR Checklist
Detailed Description of the Pull Request / Additional comments
Okay it was a little more complicated than that. I had
IslandWindow
handle the drop, which then raises a generic event forAppHost
to handle.AppHost
handles this by writing the path as input to the terminal, traversingAppLogic
,TerminalPage
and finally landing inTermControl
Validation Steps Performed
Tested manually with both paths with and without spaces.