Vim mode for file explorer #6596
Unanswered
matthewgapp
asked this question in
Q&A
Replies: 2 comments
-
Same issue for me. Preventing me from switching from vscode |
Beta Was this translation helpful? Give feedback.
0 replies
-
I am also a vscode nvim user, and I mapped some keys myself. FYI:
[
{
"context": "Editor && VimControl && !VimWaiting && !menu",
"bindings": {
"space n": "workspace::ToggleLeftDock",
"-": "project_panel::ToggleFocus",
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-l": ["workspace::ActivatePaneInDirection", "Right"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-j": ["workspace::ActivatePaneInDirection", "Down"]
}
},
{
"context": "ProjectPanel && not_editing",
"bindings": {
// https://github.com/zed-industries/zed/issues/4753
// https://github.com/zed-industries/zed/issues/4270
"escape": "project_panel::ToggleFocus",
"enter": "project_panel::Open",
"o": "project_panel::NewDirectory",
"a": "project_panel::NewFile",
"r": "project_panel::Rename",
"x": "project_panel::Cut",
"y": "project_panel::Copy",
"p": "project_panel::Paste",
"d": "project_panel::Delete",
// Directory expansion
"l": "project_panel::ExpandSelectedEntry",
"h": "project_panel::CollapseSelectedEntry",
// Move up and down
"j": "menu::SelectNext",
"k": "menu::SelectPrev"
// "shift-d": "project_panel::Delete"
}
}
] |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use a combination of nvim and vscode but would really like to switch to Zed.
I frequently use Vim keybindings to navigate the file directory in both nvim (using
nvim tree
) and in vs code (using thevscodevim
vim extension).j
for down,k
for up,l
to expand director,h
to collapse./
should allow you to search for a file or directory.Without vim navigation in the file directory pane, half of my vim workflow is gone, preventing me from switching to Zed.
Is that functionality already supported (I see arrow keys are supported)? If not, any plans to support it?
Beta Was this translation helpful? Give feedback.
All reactions