jetbrains.json

  1[
  2  {
  3    "bindings": {
  4      "ctrl-alt-s": "zed::OpenSettings",
  5      "ctrl-{": "pane::ActivatePreviousItem",
  6      "ctrl-}": "pane::ActivateNextItem",
  7      "shift-escape": null, // Unmap workspace::zoom
  8      "ctrl-~": "git::Branch",
  9      "ctrl-f2": "debugger::Stop",
 10      "f6": "debugger::Pause",
 11      "f7": "debugger::StepInto",
 12      "f8": "debugger::StepOver",
 13      "shift-f8": "debugger::StepOut",
 14      "f9": "debugger::Continue",
 15      "shift-f9": "debugger::Start",
 16      "alt-shift-f9": "debugger::Start",
 17    },
 18  },
 19  {
 20    "context": "Editor",
 21    "bindings": {
 22      "ctrl->": ["zed::IncreaseBufferFontSize", { "persist": true }],
 23      "ctrl-<": ["zed::DecreaseBufferFontSize", { "persist": true }],
 24      "ctrl-shift-j": "editor::JoinLines",
 25      "ctrl-d": "editor::DuplicateSelection",
 26      "ctrl-y": "editor::DeleteLine",
 27      "ctrl-m": "editor::ScrollCursorCenter",
 28      "ctrl-pagedown": "editor::MovePageDown",
 29      "ctrl-pageup": "editor::MovePageUp",
 30      // "ctrl-alt-shift-b": "editor::SelectToPreviousWordStart",
 31      "ctrl-alt-enter": "editor::NewlineAbove",
 32      "shift-enter": "editor::NewlineBelow",
 33      // "ctrl--": "editor::Fold", // TODO: `ctrl-numpad--` (numpad not implemented)
 34      // "ctrl-+": "editor::UnfoldLines", // TODO: `ctrl-numpad+` (numpad not implemented)
 35      "alt-shift-g": "editor::SplitSelectionIntoLines",
 36      "alt-j": ["editor::SelectNext", { "replace_newest": false }],
 37      "alt-shift-j": ["editor::SelectPrevious", { "replace_newest": false }],
 38      "ctrl-/": ["editor::ToggleComments", { "advance_downwards": true }],
 39      "ctrl-w": "editor::SelectLargerSyntaxNode",
 40      "ctrl-shift-w": "editor::SelectSmallerSyntaxNode",
 41      "shift-alt-up": "editor::MoveLineUp",
 42      "shift-alt-down": "editor::MoveLineDown",
 43      "ctrl-alt-l": "editor::Format",
 44      "ctrl-alt-o": "editor::OrganizeImports",
 45      "shift-f6": "editor::Rename",
 46      "ctrl-alt-left": "pane::GoBack",
 47      "ctrl-alt-right": "pane::GoForward",
 48      "alt-f7": "editor::FindAllReferences",
 49      "ctrl-alt-f7": "editor::FindAllReferences",
 50      "ctrl-b": "editor::GoToDefinition", // Conflicts with workspace::ToggleLeftDock
 51      "ctrl-alt-b": "editor::GoToImplementation", // Conflicts with workspace::ToggleRightDock
 52      "ctrl-shift-b": "editor::GoToTypeDefinition",
 53      "ctrl-alt-shift-b": "editor::GoToTypeDefinitionSplit",
 54      "f2": "editor::GoToDiagnostic",
 55      "shift-f2": "editor::GoToPreviousDiagnostic",
 56      "ctrl-alt-shift-down": "editor::GoToHunk",
 57      "ctrl-alt-shift-up": "editor::GoToPreviousHunk",
 58      "ctrl-alt-z": "git::Restore",
 59      "ctrl-home": "editor::MoveToBeginning",
 60      "ctrl-end": "editor::MoveToEnd",
 61      "ctrl-shift-home": "editor::SelectToBeginning",
 62      "ctrl-shift-end": "editor::SelectToEnd",
 63      "ctrl-f8": "editor::ToggleBreakpoint",
 64      "ctrl-shift-f8": "editor::EditLogBreakpoint",
 65      "ctrl-shift-u": "editor::ToggleCase",
 66    },
 67  },
 68  {
 69    "context": "Editor && mode == full",
 70    "bindings": {
 71      "ctrl-f12": "outline::Toggle",
 72      "ctrl-r": ["buffer_search::Deploy", { "replace_enabled": true }],
 73      "ctrl-e": "file_finder::Toggle",
 74      "ctrl-shift-n": "file_finder::Toggle",
 75      "ctrl-alt-n": "file_finder::Toggle",
 76      "ctrl-g": "go_to_line::Toggle",
 77      "alt-enter": "editor::ToggleCodeActions",
 78      "ctrl-space": "editor::ShowCompletions",
 79      "ctrl-q": "editor::Hover",
 80      "ctrl-p": "editor::ShowSignatureHelp",
 81      "ctrl-\\": "assistant::InlineAssist",
 82    },
 83  },
 84  {
 85    "context": "Editor && mode == auto_height",
 86    "bindings": {
 87      "shift-enter": "editor::Newline",
 88      "ctrl-shift-enter": "editor::NewlineBelow",
 89    },
 90  },
 91  {
 92    "context": "BufferSearchBar",
 93    "bindings": {
 94      "shift-enter": "search::SelectPreviousMatch",
 95    },
 96  },
 97  {
 98    "context": "BufferSearchBar || ProjectSearchBar",
 99    "bindings": {
100      "alt-c": "search::ToggleCaseSensitive",
101      "alt-e": "search::ToggleSelection",
102      "alt-x": "search::ToggleRegex",
103      "alt-w": "search::ToggleWholeWord",
104    },
105  },
106  {
107    "context": "Workspace",
108    "bindings": {
109      "ctrl-shift-f12": "workspace::ToggleAllDocks",
110      "ctrl-shift-r": ["pane::DeploySearch", { "replace_enabled": true }],
111      "alt-shift-f10": "task::Spawn",
112      "shift-f10": "task::Spawn",
113      "ctrl-f5": "task::Rerun",
114      "ctrl-e": "file_finder::Toggle",
115      "ctrl-k": "git_panel::ToggleFocus", // bug: This should also focus commit editor
116      "ctrl-shift-n": "file_finder::Toggle",
117      "ctrl-alt-n": "file_finder::Toggle",
118      "ctrl-n": "project_symbols::Toggle",
119      "ctrl-shift-a": "command_palette::Toggle",
120      "shift shift": "command_palette::Toggle",
121      "ctrl-alt-shift-n": "project_symbols::Toggle",
122      "alt-0": "git_panel::ToggleFocus",
123      "alt-1": "project_panel::ToggleFocus",
124      "alt-5": "debug_panel::ToggleFocus",
125      "alt-6": "diagnostics::Deploy",
126      "alt-7": "outline_panel::ToggleFocus",
127    },
128  },
129  {
130    "context": "Pane", // this is to override the default Pane mappings to switch tabs
131    "bindings": {
132      "alt-1": "project_panel::ToggleFocus",
133      "alt-2": null, // Bookmarks (left dock)
134      "alt-3": null, // Find Panel (bottom dock)
135      "alt-4": null, // Run Panel (bottom dock)
136      "alt-5": "debug_panel::ToggleFocus",
137      "alt-6": "diagnostics::Deploy",
138      "alt-7": "outline_panel::ToggleFocus",
139      "alt-8": null, // Services (bottom dock)
140      "alt-9": null, // Git History (bottom dock)
141      "alt-0": "git_panel::ToggleFocus",
142    },
143  },
144  {
145    "context": "Workspace || Editor",
146    "bindings": {
147      "alt-f12": "terminal_panel::Toggle",
148      "ctrl-shift-k": "git::Push",
149    },
150  },
151  {
152    "context": "Pane",
153    "bindings": {
154      "ctrl-alt-left": "pane::GoBack",
155      "ctrl-alt-right": "pane::GoForward",
156      "alt-left": "pane::ActivatePreviousItem",
157      "alt-right": "pane::ActivateNextItem",
158    },
159  },
160  {
161    "context": "ProjectPanel",
162    "bindings": {
163      "enter": "project_panel::Open",
164      "ctrl-shift-f": "project_panel::NewSearchInDirectory",
165      "backspace": ["project_panel::Trash", { "skip_prompt": false }],
166      "delete": ["project_panel::Trash", { "skip_prompt": false }],
167      "shift-delete": ["project_panel::Delete", { "skip_prompt": false }],
168      "shift-f6": "project_panel::Rename",
169    },
170  },
171  {
172    "context": "Terminal",
173    "bindings": {
174      "ctrl-shift-t": "workspace::NewTerminal",
175      "alt-f12": "workspace::CloseActiveDock",
176      "ctrl-up": "terminal::ScrollLineUp",
177      "ctrl-down": "terminal::ScrollLineDown",
178      "shift-pageup": "terminal::ScrollPageUp",
179      "shift-pagedown": "terminal::ScrollPageDown",
180    },
181  },
182  { "context": "GitPanel", "bindings": { "alt-0": "workspace::CloseActiveDock" } },
183  { "context": "ProjectPanel", "bindings": { "alt-1": "workspace::CloseActiveDock" } },
184  { "context": "DebugPanel", "bindings": { "alt-5": "workspace::CloseActiveDock" } },
185  { "context": "Diagnostics > Editor", "bindings": { "alt-6": "pane::CloseActiveItem" } },
186  { "context": "OutlinePanel", "bindings": { "alt-7": "workspace::CloseActiveDock" } },
187  {
188    "context": "Dock || Workspace || OutlinePanel || ProjectPanel || CollabPanel",
189    "bindings": {
190      "escape": "editor::ToggleFocus",
191      "shift-escape": "workspace::CloseActiveDock",
192    },
193  },
194  {
195    "context": "Editor && mode == auto_height",
196    "bindings": {
197      "escape": "editor::Cancel",
198    },
199  },
200]