aboutsummaryrefslogtreecommitdiff
path: root/zed/keymap.json
diff options
context:
space:
mode:
authory-jan137 <yousefjan24000@gmail.com>2026-04-08 11:44:03 +0300
committery-jan137 <yousefjan24000@gmail.com>2026-04-08 11:44:03 +0300
commit0443194dec65696852d18ee004c933ee35fa5c92 (patch)
treeab2ee5883c06a97b7407f458b99ef000365af0f9 /zed/keymap.json
parentc8a03cb8fc5ed2a7ea893802058e94e322f28170 (diff)
Add zed
Diffstat (limited to 'zed/keymap.json')
-rw-r--r--zed/keymap.json46
1 files changed, 46 insertions, 0 deletions
diff --git a/zed/keymap.json b/zed/keymap.json
new file mode 100644
index 0000000..801a55d
--- /dev/null
+++ b/zed/keymap.json
@@ -0,0 +1,46 @@
+// Zed keymap
+//
+// For information on binding keys, see the Zed
+// documentation: https://zed.dev/docs/key-bindings
+//
+// To see the default key bindings run `zed: open default keymap`
+// from the command palette.
+[
+ {
+ "context": "Workspace",
+ "bindings": {
+ "\\ f f": "file_finder::Toggle",
+ "\\ f g": "workspace::NewSearch",
+ "\\ f b": "tab_switcher::Toggle",
+ "\\ f e": "project_panel::ToggleFocus",
+ },
+ },
+ {
+ "context": "Editor && vim_mode == normal",
+ "bindings": {
+ "\\ d": "editor::Delete",
+
+ "g d": "editor::GoToDefinition",
+ "g D": "editor::GoToDeclaration",
+ "g r": "editor::FindAllReferences",
+ "g i": "editor::GoToImplementation",
+
+ "k": "editor::Hover",
+ "ctrl-k": "editor::ShowSignatureHelp",
+
+ "\\ c a": "editor::ToggleCodeActions",
+ "\\ r n": "editor::Rename",
+
+ "\\ f m": "editor::Format",
+
+ "\\ w": "workspace::Save",
+ },
+ },
+ {
+ "context": "Editor && vim_mode == visual",
+ "bindings": {
+ "J": "editor::MoveLineDown",
+ "K": "editor::MoveLineUp",
+ },
+ },
+]