Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

vim: Add debug panel ex command (#33560)

5brianba4fc1bcfc17
diff --git a/crates/vim/src/command.rs b/crates/vim/src/command.rs
index 839a0392d4d..4c4d6b5175f 100644
--- a/crates/vim/src/command.rs
+++ b/crates/vim/src/command.rs
@@ -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),
diff --git a/docs/src/vim.md b/docs/src/vim.md
index 3d3a1bac013..a1c79b531da 100644
--- a/docs/src/vim.md
+++ b/docs/src/vim.md
@@ -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]` |