Add netrw bindings for vim (#7757)

This is now possible after #7647

Release Notes:

- Added vim bindings for project panel
([#4270](https://github.com/zed-industries/zed/issues/4270)).
This commit is contained in:
Conrad Irwin 2024-02-14 14:38:07 -07:00 committed by GitHub
parent 65a1938e52
commit 8e52cf1495
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 50 additions and 1 deletions

View file

@ -505,5 +505,33 @@
"enter": "vim::SearchSubmit",
"escape": "buffer_search::Dismiss"
}
},
{
// Directory expansion
"context": "ProjectPanel && not_editing",
"bindings": {
"escape": "project_panel::ToggleFocus",
"enter": "project_panel::Open",
"o": "project_panel::Open",
"t": "project_panel::Open",
"v": "project_panel::Open",
"d": "project_panel::NewDirectory",
"%": "project_panel::NewFile",
"shift-r": "project_panel::Rename",
"m m": "project_panel::Cut",
"m c": "project_panel::Copy",
"m t": "project_panel::Paste",
"x": "project_panel::RevealInFinder",
"l": "project_panel::ExpandSelectedEntry",
"h": "project_panel::CollapseSelectedEntry",
// Move up and down
"j": "menu::SelectNext",
"k": "menu::SelectPrev",
"shift-d": "project_panel::Delete",
"/": "project_panel::NewSearchInDirectory",
// zed specific
"q p": "project_panel::CopyPath",
"q r": "project_panel::CopyRelativePath"
}
}
]