Project Panel: Move selected File/Directory via Keybind or Context Menu #27486
andreasvh-conceto
started this conversation in
Feature Ideas / Enhancements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem Statement
Currently, moving files/directories in Zed’s project panel requires drag-and-drop, which can be cumbersome in large projects. Accidental scrolling, mouse dependency, and imprecision make this workflow inefficient for keyboard-centric users. A keyboard-driven solution would streamline file organization. This can also be challenging for mouse users, who must navigate deep directory structures and drag files with precision.
Proposed Solution
Add a
project panel: move file
Command for the Project panel.Triggerable via the command palette if a file/directory is selected, allowing users to move the selected file/directory by typing/selecting the new destination path.
Keybind support (e.g.,
m
by default, configurable in keymap.json).Interactive Move Dialog
A text input dialog (similar to JetBrains’ Move File Dialog) to type the destination path or to select the new location in another way in the project tree.
Autocomplete Suggestions: path autocomplete suggestions for valid directories/files as the user types.
Project Panel Integration
Via mouse: Right-click context menu option: Move File/Directory.
Via keyboard: go to project panel, select the directory/file of your choice via
h
,j``k
,l
in vim mode or arrow keys and execute theproject panel: move file
command or press its keybinding (i.e. default tom
)Examples from Other Editors
LazyVim: Uses

m
key to initiate file moving by using the NeoTree pluginJetBrains IDEs: Populates a dialog with path autocomplete and validation.
Implementation Considerations
Additional Context
This feature would complement Zed’s existing keyboard shortcuts, making it a more versatile tool for developers migrating from editors like Vim or JetBrains IDEs. Also it will prevent users to accidently moving files/directories to the wrong location.
Thank you for considering this suggestion! 🙌
Beta Was this translation helpful? Give feedback.
All reactions