You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a feature I've used quite a lot in an Atom terminal package which I really like, with a terminal open you can drag files or folders onto it and it will insert the path to it. It is really useful if you have a file browser open or even just the project tree, you can just drag and drop files to quickly set the path of whatever you are trying to run.
I think VSCode also does this by default.
Describe the solution you'd like
Drag a file from either the project pane or a file browser and drop it onto the terminal.
The terminal will then print the path onto the prompt - adding quotes if necessary due to spaces etc. in the path.
Maybe a modifier could be used to execute an action at the same time, for example if you held alt it would automatically cd to that directory (or if a file, the parent directory).
Another modifier could be used to control whether the printed path is the full path or the relative one e.g if my prompt was in ~/dev/project1/src then dragging a cargo.toml from the parent directory would print ../cargo.toml but if modified it would print /home/user/dev/project1/cargo.toml.
If applicable, add mockups / screenshots to help present your vision of the feature
No response
The text was updated successfully, but these errors were encountered:
Deals with https://github.com/zed-industries/community/issues/1317
Deals with https://github.com/zed-industries/community/issues/486
Reworks pane drag and drop code to support
* dropping external files into main pane (supports splits same as tabs
and project entries drop) — this will open the file dropped
* dropping external files, tabs and project entries drop into the
terminal — this will add file abs path into the terminal
Release Notes:
- Added a way to drag and drop external files into Zed main & terminal
panes; support tabs and project entries drop into terminal pane
Check for existing issues
Is your feature request related to a problem?
This is a feature I've used quite a lot in an Atom terminal package which I really like, with a terminal open you can drag files or folders onto it and it will insert the path to it. It is really useful if you have a file browser open or even just the project tree, you can just drag and drop files to quickly set the path of whatever you are trying to run.
I think VSCode also does this by default.
Describe the solution you'd like
Drag a file from either the project pane or a file browser and drop it onto the terminal.
The terminal will then print the path onto the prompt - adding quotes if necessary due to spaces etc. in the path.
Maybe a modifier could be used to execute an action at the same time, for example if you held alt it would automatically
cd
to that directory (or if a file, the parent directory).Another modifier could be used to control whether the printed path is the full path or the relative one e.g if my prompt was in
~/dev/project1/src
then dragging acargo.toml
from the parent directory would print../cargo.toml
but if modified it would print/home/user/dev/project1/cargo.toml
.If applicable, add mockups / screenshots to help present your vision of the feature
No response
The text was updated successfully, but these errors were encountered: