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 :Git (#27874)

5brian95b963c87b5e
diff --git a/crates/vim/src/command.rs b/crates/vim/src/command.rs
index b8ec1faf7fa..9245701bf3f 100644
--- a/crates/vim/src/command.rs
+++ b/crates/vim/src/command.rs
@@ -876,6 +876,7 @@ fn generate_commands(_: &App) -> Vec<VimCommand> {
VimCommand::str(("Ch", "at"), "chat_panel::ToggleFocus"),
VimCommand::str(("No", "tifications"), "notification_panel::ToggleFocus"),
VimCommand::str(("A", "I"), "assistant::ToggleFocus"),
+ VimCommand::str(("G", "it"), "git_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 994387386f6..815ebe79caf 100644
--- a/docs/src/vim.md
+++ b/docs/src/vim.md
@@ -212,6 +212,7 @@ These ex commands open Zed's various panels and windows.
| Open the collaboration panel | `:C[ollab]` |
| Open the chat panel | `:Ch[at]` |
| Open the AI panel | `:A[I]` |
+| Open the git panel | `:G[it]` |
| Open the notifications panel | `:No[tif]` |
| Open the feedback window | `:fe[edback]` |
| Open the diagnostics window | `:cl[ist]` |