-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Drag folder/file to '+' button to open new tab in directory #10073
Comments
This is a neat idea, thanks!
Yea, you've pretty much laid out why that wouldn't work. What if you dragged a file into We have a totally other issue on the repro tracking "drag drop for WSL should use WSL paths", but I'm too lazy to link that right now 😛 |
Here, #1772. I think this is what you looking for 😄 |
<!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request This PR implements the ability to drop directories/files on the '+' button which in turn will open the tab/pane/window in the given starting path. In order to do this, I refactored the click's lambda into a method and re-used it Sadly I wasn't able to add note about the alt/shift feature (any ideas how to do this?) Also most of the code is "look-a-like" from other places within the project, as I don't have much experience in windows development. <!-- Other than the issue solved, is this relevant to any other issues/existing PRs? --> ## References implements #10073 ## PR Checklist * [ ] Closes #10073 * [ ] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed ** tests were done manually both of the old feature (alt/shift+click) on the '+' and on the profiles * [ ] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx ** no idea what to add there, if any. * [ ] Schema updated. * [ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx ## Detailed Description of the Pull Request / Additional comments ## Validation Steps Performed tested manually.
🎉This issue was addressed in #10160, which has now been successfully released as Handy links: |
🎉 Handy links: |
Description of the new feature/enhancement
Would be nice if dragging and dropping a folder from explorer onto the plus button created a new shell within that directory.
If a file is dropped, then the parent folder should be used.
As a bonus it would be nice if dragging onto an existing tab set the CWD of that shell to the directory, but I believe this would require more configuration per shell-type (i.e. would need to know how to navigate to the folder, and in the case of unix-like shells how to transform the path).
Note: Currently dragging a file/folder into an existing shell (i.e. not the tab) pastes the path into that shell; I'm not suggesting that this change at all (although if the path-transformation issue mentioned above is solved then maybe it could be re-used here, as windows-format paths are fairly useless in a unix-like shell).
The text was updated successfully, but these errors were encountered: