From ba4fc1bcfc1748c0b0e9edda8998d798a02feba0 Mon Sep 17 00:00:00 2001 From: 5brian Date: Fri, 27 Jun 2025 23:32:40 -0400 Subject: [PATCH] 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 --- crates/vim/src/command.rs | 2 ++ docs/src/vim.md | 1 + 2 files changed, 3 insertions(+) diff --git a/crates/vim/src/command.rs b/crates/vim/src/command.rs index 839a0392d4..4c4d6b5175 100644 --- a/crates/vim/src/command.rs +++ b/crates/vim/src/command.rs @@ -1067,6 +1067,7 @@ fn generate_commands(_: &App) -> Vec { ) }), 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::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 3d3a1bac01..a1c79b531d 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]` |