aboutsummaryrefslogtreecommitdiff
path: root/zed/keymap.json
diff options
context:
space:
mode:
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",
+ },
+ },
+]