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.

helix: Map Zed's specific diff and git-related to goto mode (#45006)

Jakub Konka0466db66cde8
diff --git a/assets/keymaps/vim.json b/assets/keymaps/vim.json
index 0097480e277..6e5d3423872 100644
--- a/assets/keymaps/vim.json
+++ b/assets/keymaps/vim.json
@@ -502,6 +502,11 @@
"g p": "pane::ActivatePreviousItem",
"shift-h": "pane::ActivatePreviousItem", // not a helix default
"g .": "vim::HelixGotoLastModification",
+ "g o": "editor::ToggleSelectedDiffHunks", // Zed specific
+ "g shift-o": "git::ToggleStaged", // Zed specific
+ "g shift-r": "git::Restore", // Zed specific
+ "g u": "git::StageAndNext", // Zed specific
+ "g shift-u": "git::UnstageAndNext", // Zed specific
// Window mode
"space w v": "pane::SplitDown",