Add Project Panel navigation actions in netrw mode (#20941)
Release Notes:
- Added "[ c" & "] c" To select prev/next git modified file within the
project panel
- Added "[ d" & "] d" To select prev/next file with diagnostics from an
LSP within the project panel
- Added "{" & "}" To select prev/next directory within the project panel
Note:
I wanted to extend project panel's functionality when netrw is active so
I added some shortcuts that I believe will be helpful for most users. I
tried to keep the default key mappings for the shortcuts inline with
Zed's vim mode.
## Selecting prev/next modified git file
https://github.com/user-attachments/assets/a9c057c7-1015-444f-b273-6d52ac54aa9c
## Selecting prev/next diagnostics
https://github.com/user-attachments/assets/d1fb04ac-02c6-477c-b751-90a11bb42a78
## Selecting prev/next directories (Only works with visible directoires)
https://github.com/user-attachments/assets/9e96371e-105f-4fe9-bbf7-58f4a529f0dd
This commit is contained in:
@@ -659,6 +659,12 @@
|
||||
"p": "project_panel::Open",
|
||||
"x": "project_panel::RevealInFileManager",
|
||||
"s": "project_panel::OpenWithSystem",
|
||||
"] c": "project_panel::SelectNextGitEntry",
|
||||
"[ c": "project_panel::SelectPrevGitEntry",
|
||||
"] d": "project_panel::SelectNextDiagnostic",
|
||||
"[ d": "project_panel::SelectPrevDiagnostic",
|
||||
"}": "project_panel::SelectNextDirectory",
|
||||
"{": "project_panel::SelectPrevDirectory",
|
||||
"shift-g": "menu::SelectLast",
|
||||
"g g": "menu::SelectFirst",
|
||||
"-": "project_panel::SelectParent",
|
||||
|
||||
Reference in New Issue
Block a user