vim: Add debug panel ex command (#33560)

Added :Debug to open debug panel, also added
[:display](https://neovim.io/doc/user/change.html#%3Adisplay), alias to
:reg

Release Notes:

- N/A
This commit is contained in:
5brian 2025-06-27 23:32:40 -04:00 committed by GitHub
parent bbf16bda75
commit ba4fc1bcfc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View file

@ -1067,6 +1067,7 @@ fn generate_commands(_: &App) -> Vec<VimCommand> {
)
}),
VimCommand::new(("reg", "isters"), ToggleRegistersView).bang(ToggleRegistersView),
VimCommand::new(("di", "splay"), ToggleRegistersView).bang(ToggleRegistersView),
VimCommand::new(("marks", ""), ToggleMarksView).bang(ToggleMarksView),
VimCommand::new(("delm", "arks"), ArgumentRequired)
.bang(DeleteMarks::AllLocal)
@ -1085,6 +1086,7 @@ fn generate_commands(_: &App) -> Vec<VimCommand> {
VimCommand::str(("No", "tifications"), "notification_panel::ToggleFocus"),
VimCommand::str(("A", "I"), "agent::ToggleFocus"),
VimCommand::str(("G", "it"), "git_panel::ToggleFocus"),
VimCommand::str(("D", "ebug"), "debug_panel::ToggleFocus"),
VimCommand::new(("noh", "lsearch"), search::buffer_search::Dismiss),
VimCommand::new(("$", ""), EndOfDocument),
VimCommand::new(("%", ""), EndOfDocument),

View file

@ -288,6 +288,7 @@ These ex commands open Zed's various panels and windows.
| Open the chat panel | `:Ch[at]` |
| Open the AI panel | `:A[I]` |
| Open the git panel | `:G[it]` |
| Open the debug panel | `:D[ebug]` |
| Open the notifications panel | `:No[tif]` |
| Open the feedback window | `:fe[edback]` |
| Open the diagnostics window | `:cl[ist]` |