Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Improve JetBrains keymap for dock toggling (#35234)
Peter Tripp8207621a4a59
diff --git a/assets/keymaps/linux/jetbrains.json b/assets/keymaps/linux/jetbrains.jsonindex f602923fea3..f81f363ae00 100644--- a/assets/keymaps/linux/jetbrains.json+++ b/assets/keymaps/linux/jetbrains.json@@ -45,8 +45,8 @@"ctrl-alt-right": "pane::GoForward","alt-f7": "editor::FindAllReferences","ctrl-alt-f7": "editor::FindAllReferences",- // "ctrl-b": "editor::GoToDefinition", // Conflicts with workspace::ToggleLeftDock- // "ctrl-alt-b": "editor::GoToDefinitionSplit", // Conflicts with workspace::ToggleLeftDock+ "ctrl-b": "editor::GoToDefinition", // Conflicts with workspace::ToggleLeftDock+ "ctrl-alt-b": "editor::GoToDefinitionSplit", // Conflicts with workspace::ToggleRightDock"ctrl-shift-b": "editor::GoToTypeDefinition","ctrl-alt-shift-b": "editor::GoToTypeDefinitionSplit","f2": "editor::GoToDiagnostic",@@ -101,12 +101,27 @@"shift shift": "command_palette::Toggle","ctrl-alt-shift-n": "project_symbols::Toggle","alt-0": "git_panel::ToggleFocus",- "alt-1": "workspace::ToggleLeftDock",+ "alt-1": "project_panel::ToggleFocus","alt-5": "debug_panel::ToggleFocus","alt-6": "diagnostics::Deploy","alt-7": "outline_panel::ToggleFocus"}},+ {+ "context": "Pane", // this is to override the default Pane mappings to switch tabs+ "bindings": {+ "alt-1": "project_panel::ToggleFocus",+ "alt-2": null, // Bookmarks (left dock)+ "alt-3": null, // Find Panel (bottom dock)+ "alt-4": null, // Run Panel (bottom dock)+ "alt-5": "debug_panel::ToggleFocus",+ "alt-6": "diagnostics::Deploy",+ "alt-7": "outline_panel::ToggleFocus",+ "alt-8": null, // Services (bottom dock)+ "alt-9": null, // Git History (bottom dock)+ "alt-0": "git_panel::ToggleFocus"+ }+ },{"context": "Workspace || Editor","bindings": {diff --git a/assets/keymaps/macos/jetbrains.json b/assets/keymaps/macos/jetbrains.jsonindex 0f86f98878e..5795d2ac7e6 100644--- a/assets/keymaps/macos/jetbrains.json+++ b/assets/keymaps/macos/jetbrains.json@@ -109,6 +109,21 @@"cmd-7": "outline_panel::ToggleFocus"}},+ {+ "context": "Pane", // this is to override the default Pane mappings to switch tabs+ "bindings": {+ "cmd-1": "project_panel::ToggleFocus",+ "cmd-2": null, // Bookmarks (left dock)+ "cmd-3": null, // Find Panel (bottom dock)+ "cmd-4": null, // Run Panel (bottom dock)+ "cmd-5": "debug_panel::ToggleFocus",+ "cmd-6": "diagnostics::Deploy",+ "cmd-7": "outline_panel::ToggleFocus",+ "cmd-8": null, // Services (bottom dock)+ "cmd-9": null, // Git History (bottom dock)+ "cmd-0": "git_panel::ToggleFocus"+ }+ },{"context": "Workspace || Editor","bindings": {@@ -147,6 +162,7 @@}},{ "context": "GitPanel", "bindings": { "cmd-0": "workspace::CloseActiveDock" } },+ { "context": "ProjectPanel", "bindings": { "cmd-1": "workspace::CloseActiveDock" } },{ "context": "DebugPanel", "bindings": { "cmd-5": "workspace::CloseActiveDock" } },{ "context": "Diagnostics > Editor", "bindings": { "cmd-6": "pane::CloseActiveItem" } },{ "context": "OutlinePanel", "bindings": { "cmd-7": "workspace::CloseActiveDock" } },