default-linux.json

   1[
   2  // Standard Linux bindings
   3  {
   4    "bindings": {
   5      "home": "menu::SelectFirst",
   6      "shift-pageup": "menu::SelectFirst",
   7      "pageup": "menu::SelectFirst",
   8      "end": "menu::SelectLast",
   9      "shift-pagedown": "menu::SelectLast",
  10      "pagedown": "menu::SelectLast",
  11      "ctrl-n": "menu::SelectNext",
  12      "tab": "menu::SelectNext",
  13      "down": "menu::SelectNext",
  14      "ctrl-p": "menu::SelectPrevious",
  15      "shift-tab": "menu::SelectPrevious",
  16      "up": "menu::SelectPrevious",
  17      "enter": "menu::Confirm",
  18      "ctrl-enter": "menu::SecondaryConfirm",
  19      "ctrl-escape": "menu::Cancel",
  20      "ctrl-c": "menu::Cancel",
  21      "escape": "menu::Cancel",
  22      "alt-shift-enter": "menu::Restart",
  23      "alt-enter": ["picker::ConfirmInput", { "secondary": false }],
  24      "ctrl-alt-enter": ["picker::ConfirmInput", { "secondary": true }],
  25      "ctrl-shift-w": "workspace::CloseWindow",
  26      "shift-escape": "workspace::ToggleZoom",
  27      "open": "workspace::Open",
  28      "ctrl-o": "workspace::Open",
  29      "ctrl-=": ["zed::IncreaseBufferFontSize", { "persist": false }],
  30      "ctrl-+": ["zed::IncreaseBufferFontSize", { "persist": false }],
  31      "ctrl--": ["zed::DecreaseBufferFontSize", { "persist": false }],
  32      "ctrl-0": ["zed::ResetBufferFontSize", { "persist": false }],
  33      "ctrl-,": "zed::OpenSettingsEditor",
  34      "ctrl-alt-,": "zed::OpenSettings",
  35      "ctrl-q": "zed::Quit",
  36      "f4": "debugger::Start",
  37      "shift-f5": "debugger::Stop",
  38      "ctrl-shift-f5": "debugger::RerunSession",
  39      "f6": "debugger::Pause",
  40      "f7": "debugger::StepOver",
  41      "ctrl-f11": "debugger::StepInto",
  42      "shift-f11": "debugger::StepOut",
  43      "f11": "zed::ToggleFullScreen",
  44      "ctrl-alt-z": "edit_prediction::RateCompletions",
  45      "ctrl-alt-shift-i": "edit_prediction::ToggleMenu",
  46      "ctrl-alt-l": "lsp_tool::ToggleMenu"
  47    }
  48  },
  49  {
  50    "context": "Picker || menu",
  51    "bindings": {
  52      "up": "menu::SelectPrevious",
  53      "down": "menu::SelectNext"
  54    }
  55  },
  56  {
  57    "context": "Editor",
  58    "bindings": {
  59      "escape": "editor::Cancel",
  60      "shift-backspace": "editor::Backspace",
  61      "backspace": "editor::Backspace",
  62      "delete": "editor::Delete",
  63      "tab": "editor::Tab",
  64      "shift-tab": "editor::Backtab",
  65      "ctrl-k": "editor::CutToEndOfLine",
  66      "ctrl-k ctrl-q": "editor::Rewrap",
  67      "ctrl-k q": "editor::Rewrap",
  68      "ctrl-backspace": ["editor::DeleteToPreviousWordStart", { "ignore_newlines": false, "ignore_brackets": false }],
  69      "ctrl-delete": ["editor::DeleteToNextWordEnd", { "ignore_newlines": false, "ignore_brackets": false }],
  70      "cut": "editor::Cut",
  71      "shift-delete": "editor::Cut",
  72      "ctrl-x": "editor::Cut",
  73      "copy": "editor::Copy",
  74      "ctrl-insert": "editor::Copy",
  75      "ctrl-c": "editor::Copy",
  76      "paste": "editor::Paste",
  77      "shift-insert": "editor::Paste",
  78      "ctrl-v": "editor::Paste",
  79      "undo": "editor::Undo",
  80      "ctrl-z": "editor::Undo",
  81      "redo": "editor::Redo",
  82      "ctrl-y": "editor::Redo",
  83      "ctrl-shift-z": "editor::Redo",
  84      "up": "editor::MoveUp",
  85      "ctrl-up": "editor::LineUp",
  86      "ctrl-down": "editor::LineDown",
  87      "pageup": "editor::MovePageUp",
  88      "alt-pageup": "editor::PageUp",
  89      "shift-pageup": "editor::SelectPageUp",
  90      "home": ["editor::MoveToBeginningOfLine", { "stop_at_soft_wraps": true, "stop_at_indent": true }],
  91      "down": "editor::MoveDown",
  92      "pagedown": "editor::MovePageDown",
  93      "alt-pagedown": "editor::PageDown",
  94      "shift-pagedown": "editor::SelectPageDown",
  95      "end": ["editor::MoveToEndOfLine", { "stop_at_soft_wraps": true }],
  96      "left": "editor::MoveLeft",
  97      "right": "editor::MoveRight",
  98      "ctrl-left": "editor::MoveToPreviousWordStart",
  99      "ctrl-right": "editor::MoveToNextWordEnd",
 100      "ctrl-home": "editor::MoveToBeginning",
 101      "ctrl-end": "editor::MoveToEnd",
 102      "shift-up": "editor::SelectUp",
 103      "shift-down": "editor::SelectDown",
 104      "shift-left": "editor::SelectLeft",
 105      "shift-right": "editor::SelectRight",
 106      "ctrl-shift-left": "editor::SelectToPreviousWordStart",
 107      "ctrl-shift-right": "editor::SelectToNextWordEnd",
 108      "ctrl-shift-home": "editor::SelectToBeginning",
 109      "ctrl-shift-end": "editor::SelectToEnd",
 110      "ctrl-a": "editor::SelectAll",
 111      "ctrl-l": "editor::SelectLine",
 112      "ctrl-shift-i": "editor::Format",
 113      "alt-shift-o": "editor::OrganizeImports",
 114      "shift-home": ["editor::SelectToBeginningOfLine", { "stop_at_soft_wraps": true, "stop_at_indent": true }],
 115      "shift-end": ["editor::SelectToEndOfLine", { "stop_at_soft_wraps": true }],
 116      "ctrl-alt-space": "editor::ShowCharacterPalette",
 117      "ctrl-;": "editor::ToggleLineNumbers",
 118      "ctrl-'": "editor::ToggleSelectedDiffHunks",
 119      "ctrl-\"": "editor::ExpandAllDiffHunks",
 120      "ctrl-i": "editor::ShowSignatureHelp",
 121      "alt-g b": "git::Blame",
 122      "alt-g m": "git::OpenModifiedFiles",
 123      "menu": "editor::OpenContextMenu",
 124      "shift-f10": "editor::OpenContextMenu",
 125      "ctrl-alt-shift-e": "editor::ToggleEditPrediction",
 126      "f9": "editor::ToggleBreakpoint",
 127      "shift-f9": "editor::EditLogBreakpoint"
 128    }
 129  },
 130  {
 131    "context": "Editor && mode == full",
 132    "bindings": {
 133      "shift-enter": "editor::Newline",
 134      "enter": "editor::Newline",
 135      "ctrl-enter": "editor::NewlineBelow",
 136      "ctrl-shift-enter": "editor::NewlineAbove",
 137      "ctrl-k ctrl-z": "editor::ToggleSoftWrap",
 138      "ctrl-k z": "editor::ToggleSoftWrap",
 139      "find": "buffer_search::Deploy",
 140      "ctrl-f": "buffer_search::Deploy",
 141      "ctrl-h": "buffer_search::DeployReplace",
 142      "ctrl->": "agent::QuoteSelection",
 143      "ctrl-<": "assistant::InsertIntoEditor",
 144      "ctrl-alt-e": "editor::SelectEnclosingSymbol",
 145      "ctrl-shift-backspace": "editor::GoToPreviousChange",
 146      "ctrl-shift-alt-backspace": "editor::GoToNextChange",
 147      "alt-enter": "editor::OpenSelectionsInMultibuffer"
 148    }
 149  },
 150  {
 151    "context": "Editor && mode == full && edit_prediction",
 152    "bindings": {
 153      "alt-]": "editor::NextEditPrediction",
 154      "alt-[": "editor::PreviousEditPrediction"
 155    }
 156  },
 157  {
 158    "context": "Editor && !edit_prediction",
 159    "bindings": {
 160      "alt-\\": "editor::ShowEditPrediction"
 161    }
 162  },
 163  {
 164    "context": "Editor && mode == auto_height",
 165    "bindings": {
 166      "ctrl-enter": "editor::Newline",
 167      "shift-enter": "editor::Newline",
 168      "ctrl-shift-enter": "editor::NewlineBelow"
 169    }
 170  },
 171  {
 172    "context": "Markdown",
 173    "bindings": {
 174      "copy": "markdown::Copy",
 175      "ctrl-insert": "markdown::Copy",
 176      "ctrl-c": "markdown::Copy"
 177    }
 178  },
 179  {
 180    "context": "Editor && jupyter && !ContextEditor",
 181    "bindings": {
 182      "ctrl-shift-enter": "repl::Run",
 183      "ctrl-alt-enter": "repl::RunInPlace"
 184    }
 185  },
 186  {
 187    "context": "Editor && !agent_diff",
 188    "bindings": {
 189      "ctrl-k ctrl-r": "git::Restore",
 190      "ctrl-alt-y": "git::ToggleStaged",
 191      "alt-y": "git::StageAndNext",
 192      "alt-shift-y": "git::UnstageAndNext"
 193    }
 194  },
 195  {
 196    "context": "Editor && editor_agent_diff",
 197    "bindings": {
 198      "ctrl-y": "agent::Keep",
 199      "ctrl-n": "agent::Reject",
 200      "ctrl-shift-y": "agent::KeepAll",
 201      "ctrl-shift-n": "agent::RejectAll",
 202      "shift-ctrl-r": "agent::OpenAgentDiff"
 203    }
 204  },
 205  {
 206    "context": "AgentDiff",
 207    "bindings": {
 208      "ctrl-y": "agent::Keep",
 209      "ctrl-n": "agent::Reject",
 210      "ctrl-shift-y": "agent::KeepAll",
 211      "ctrl-shift-n": "agent::RejectAll"
 212    }
 213  },
 214  {
 215    "context": "ContextEditor > Editor",
 216    "bindings": {
 217      "ctrl-enter": "assistant::Assist",
 218      "ctrl-s": "workspace::Save",
 219      "save": "workspace::Save",
 220      "ctrl-<": "assistant::InsertIntoEditor",
 221      "shift-enter": "assistant::Split",
 222      "ctrl-r": "assistant::CycleMessageRole",
 223      "enter": "assistant::ConfirmCommand",
 224      "alt-enter": "editor::Newline",
 225      "ctrl-k c": "assistant::CopyCode",
 226      "ctrl-g": "search::SelectNextMatch",
 227      "ctrl-shift-g": "search::SelectPreviousMatch",
 228      "ctrl-k l": "agent::OpenRulesLibrary"
 229    }
 230  },
 231  {
 232    "context": "AgentPanel",
 233    "bindings": {
 234      "ctrl-n": "agent::NewThread",
 235      "ctrl-alt-n": "agent::NewTextThread",
 236      "ctrl-shift-h": "agent::OpenHistory",
 237      "ctrl-alt-c": "agent::OpenSettings",
 238      "ctrl-alt-p": "agent::OpenRulesLibrary",
 239      "ctrl-i": "agent::ToggleProfileSelector",
 240      "ctrl-alt-/": "agent::ToggleModelSelector",
 241      "ctrl-shift-a": "agent::ToggleContextPicker",
 242      "ctrl-shift-j": "agent::ToggleNavigationMenu",
 243      "ctrl-shift-i": "agent::ToggleOptionsMenu",
 244      "ctrl-alt-shift-n": "agent::ToggleNewThreadMenu",
 245      "shift-alt-escape": "agent::ExpandMessageEditor",
 246      "ctrl->": "agent::QuoteSelection",
 247      "ctrl-alt-e": "agent::RemoveAllContext",
 248      "ctrl-shift-e": "project_panel::ToggleFocus",
 249      "ctrl-shift-enter": "agent::ContinueThread",
 250      "super-ctrl-b": "agent::ToggleBurnMode",
 251      "alt-enter": "agent::ContinueWithBurnMode",
 252      "ctrl-y": "agent::AllowOnce",
 253      "ctrl-alt-y": "agent::AllowAlways",
 254      "ctrl-alt-z": "agent::RejectOnce"
 255    }
 256  },
 257  {
 258    "context": "AgentPanel > NavigationMenu",
 259    "bindings": {
 260      "shift-backspace": "agent::DeleteRecentlyOpenThread"
 261    }
 262  },
 263  {
 264    "context": "AgentPanel > Markdown",
 265    "bindings": {
 266      "copy": "markdown::CopyAsMarkdown",
 267      "ctrl-insert": "markdown::CopyAsMarkdown",
 268      "ctrl-c": "markdown::CopyAsMarkdown"
 269    }
 270  },
 271  {
 272    "context": "AgentPanel && prompt_editor",
 273    "bindings": {
 274      "ctrl-n": "agent::NewTextThread",
 275      "ctrl-alt-t": "agent::NewThread"
 276    }
 277  },
 278  {
 279    "context": "AgentPanel && external_agent_thread",
 280    "use_key_equivalents": true,
 281    "bindings": {
 282      "ctrl-n": "agent::NewExternalAgentThread",
 283      "ctrl-alt-t": "agent::NewThread"
 284    }
 285  },
 286  {
 287    "context": "MessageEditor && !Picker > Editor && !use_modifier_to_send",
 288    "bindings": {
 289      "enter": "agent::Chat",
 290      "ctrl-enter": "agent::ChatWithFollow",
 291      "ctrl-i": "agent::ToggleProfileSelector",
 292      "shift-ctrl-r": "agent::OpenAgentDiff",
 293      "ctrl-shift-y": "agent::KeepAll",
 294      "ctrl-shift-n": "agent::RejectAll"
 295    }
 296  },
 297  {
 298    "context": "MessageEditor && !Picker > Editor && use_modifier_to_send",
 299    "bindings": {
 300      "ctrl-enter": "agent::Chat",
 301      "enter": "editor::Newline",
 302      "ctrl-i": "agent::ToggleProfileSelector",
 303      "shift-ctrl-r": "agent::OpenAgentDiff",
 304      "ctrl-shift-y": "agent::KeepAll",
 305      "ctrl-shift-n": "agent::RejectAll"
 306    }
 307  },
 308  {
 309    "context": "EditMessageEditor > Editor",
 310    "bindings": {
 311      "escape": "menu::Cancel",
 312      "enter": "menu::Confirm",
 313      "alt-enter": "editor::Newline"
 314    }
 315  },
 316  {
 317    "context": "AgentFeedbackMessageEditor > Editor",
 318    "bindings": {
 319      "escape": "menu::Cancel",
 320      "enter": "menu::Confirm",
 321      "alt-enter": "editor::Newline"
 322    }
 323  },
 324  {
 325    "context": "ContextStrip",
 326    "bindings": {
 327      "up": "agent::FocusUp",
 328      "right": "agent::FocusRight",
 329      "left": "agent::FocusLeft",
 330      "down": "agent::FocusDown",
 331      "backspace": "agent::RemoveFocusedContext",
 332      "enter": "agent::AcceptSuggestedContext"
 333    }
 334  },
 335  {
 336    "context": "AcpThread > ModeSelector",
 337    "bindings": {
 338      "ctrl-enter": "menu::Confirm"
 339    }
 340  },
 341  {
 342    "context": "AcpThread > Editor && !use_modifier_to_send",
 343    "use_key_equivalents": true,
 344    "bindings": {
 345      "enter": "agent::Chat",
 346      "shift-ctrl-r": "agent::OpenAgentDiff",
 347      "ctrl-shift-y": "agent::KeepAll",
 348      "ctrl-shift-n": "agent::RejectAll"
 349    }
 350  },
 351  {
 352    "context": "AcpThread > Editor && use_modifier_to_send",
 353    "use_key_equivalents": true,
 354    "bindings": {
 355      "ctrl-enter": "agent::Chat",
 356      "shift-ctrl-r": "agent::OpenAgentDiff",
 357      "ctrl-shift-y": "agent::KeepAll",
 358      "ctrl-shift-n": "agent::RejectAll",
 359      "shift-tab": "agent::CycleModeSelector"
 360    }
 361  },
 362  {
 363    "context": "ThreadHistory",
 364    "bindings": {
 365      "backspace": "agent::RemoveSelectedThread"
 366    }
 367  },
 368  {
 369    "context": "PromptLibrary",
 370    "bindings": {
 371      "new": "rules_library::NewRule",
 372      "ctrl-n": "rules_library::NewRule",
 373      "ctrl-shift-s": "rules_library::ToggleDefaultRule",
 374      "ctrl-w": "workspace::CloseWindow"
 375    }
 376  },
 377  {
 378    "context": "SettingsWindow",
 379    "use_key_equivalents": true,
 380    "bindings": {
 381      "ctrl-w": "workspace::CloseWindow"
 382    }
 383  },
 384  {
 385    "context": "BufferSearchBar",
 386    "bindings": {
 387      "escape": "buffer_search::Dismiss",
 388      "tab": "buffer_search::FocusEditor",
 389      "enter": "search::SelectNextMatch",
 390      "shift-enter": "search::SelectPreviousMatch",
 391      "alt-enter": "search::SelectAllMatches",
 392      "find": "search::FocusSearch",
 393      "ctrl-f": "search::FocusSearch",
 394      "ctrl-h": "search::ToggleReplace",
 395      "ctrl-l": "search::ToggleSelection"
 396    }
 397  },
 398  {
 399    "context": "BufferSearchBar && in_replace > Editor",
 400    "bindings": {
 401      "enter": "search::ReplaceNext",
 402      "ctrl-enter": "search::ReplaceAll"
 403    }
 404  },
 405  {
 406    "context": "BufferSearchBar && !in_replace > Editor",
 407    "bindings": {
 408      "up": "search::PreviousHistoryQuery",
 409      "down": "search::NextHistoryQuery"
 410    }
 411  },
 412  {
 413    "context": "ProjectSearchBar",
 414    "bindings": {
 415      "escape": "project_search::ToggleFocus",
 416      "shift-find": "search::FocusSearch",
 417      "ctrl-shift-f": "search::FocusSearch",
 418      "ctrl-shift-h": "search::ToggleReplace",
 419      "alt-ctrl-g": "search::ToggleRegex",
 420      "alt-ctrl-x": "search::ToggleRegex"
 421    }
 422  },
 423  {
 424    "context": "ProjectSearchBar > Editor",
 425    "bindings": {
 426      "up": "search::PreviousHistoryQuery",
 427      "down": "search::NextHistoryQuery"
 428    }
 429  },
 430  {
 431    "context": "ProjectSearchBar && in_replace > Editor",
 432    "bindings": {
 433      "enter": "search::ReplaceNext",
 434      "ctrl-alt-enter": "search::ReplaceAll"
 435    }
 436  },
 437  {
 438    "context": "ProjectSearchView",
 439    "bindings": {
 440      "escape": "project_search::ToggleFocus",
 441      "ctrl-shift-h": "search::ToggleReplace",
 442      "alt-ctrl-g": "search::ToggleRegex",
 443      "alt-ctrl-x": "search::ToggleRegex"
 444    }
 445  },
 446  {
 447    "context": "Pane",
 448    "bindings": {
 449      "alt-1": ["pane::ActivateItem", 0],
 450      "alt-2": ["pane::ActivateItem", 1],
 451      "alt-3": ["pane::ActivateItem", 2],
 452      "alt-4": ["pane::ActivateItem", 3],
 453      "alt-5": ["pane::ActivateItem", 4],
 454      "alt-6": ["pane::ActivateItem", 5],
 455      "alt-7": ["pane::ActivateItem", 6],
 456      "alt-8": ["pane::ActivateItem", 7],
 457      "alt-9": ["pane::ActivateItem", 8],
 458      "alt-0": "pane::ActivateLastItem",
 459      "ctrl-pageup": "pane::ActivatePreviousItem",
 460      "ctrl-pagedown": "pane::ActivateNextItem",
 461      "ctrl-shift-pageup": "pane::SwapItemLeft",
 462      "ctrl-shift-pagedown": "pane::SwapItemRight",
 463      "ctrl-f4": ["pane::CloseActiveItem", { "close_pinned": false }],
 464      "ctrl-w": ["pane::CloseActiveItem", { "close_pinned": false }],
 465      "alt-ctrl-t": ["pane::CloseOtherItems", { "close_pinned": false }],
 466      "alt-ctrl-shift-w": "workspace::CloseInactiveTabsAndPanes",
 467      "ctrl-k e": ["pane::CloseItemsToTheLeft", { "close_pinned": false }],
 468      "ctrl-k t": ["pane::CloseItemsToTheRight", { "close_pinned": false }],
 469      "ctrl-k u": ["pane::CloseCleanItems", { "close_pinned": false }],
 470      "ctrl-k w": ["pane::CloseAllItems", { "close_pinned": false }],
 471      "ctrl-k ctrl-w": "workspace::CloseAllItemsAndPanes",
 472      "back": "pane::GoBack",
 473      "ctrl-alt--": "pane::GoBack",
 474      "forward": "pane::GoForward",
 475      "ctrl-alt-_": "pane::GoForward",
 476      "ctrl-alt-g": "search::SelectNextMatch",
 477      "f3": "search::SelectNextMatch",
 478      "ctrl-alt-shift-g": "search::SelectPreviousMatch",
 479      "shift-f3": "search::SelectPreviousMatch",
 480      "shift-find": "project_search::ToggleFocus",
 481      "ctrl-shift-f": "project_search::ToggleFocus",
 482      "ctrl-alt-shift-h": "search::ToggleReplace",
 483      "ctrl-alt-shift-l": "search::ToggleSelection",
 484      "alt-enter": "search::SelectAllMatches",
 485      "alt-c": "search::ToggleCaseSensitive",
 486      "alt-w": "search::ToggleWholeWord",
 487      "alt-find": "project_search::ToggleFilters",
 488      "alt-ctrl-f": "project_search::ToggleFilters",
 489      "ctrl-alt-shift-r": "search::ToggleRegex",
 490      "ctrl-alt-shift-x": "search::ToggleRegex",
 491      "alt-r": "search::ToggleRegex",
 492      "ctrl-k shift-enter": "pane::TogglePinTab"
 493    }
 494  },
 495  // Bindings from VS Code
 496  {
 497    "context": "Editor",
 498    "bindings": {
 499      "ctrl-[": "editor::Outdent",
 500      "ctrl-]": "editor::Indent",
 501      "shift-alt-up": "editor::AddSelectionAbove", // Insert Cursor Above
 502      "shift-alt-down": "editor::AddSelectionBelow", // Insert Cursor Below
 503      "ctrl-shift-k": "editor::DeleteLine",
 504      "alt-up": "editor::MoveLineUp",
 505      "alt-down": "editor::MoveLineDown",
 506      "ctrl-alt-shift-up": "editor::DuplicateLineUp",
 507      "ctrl-alt-shift-down": "editor::DuplicateLineDown",
 508      "alt-shift-right": "editor::SelectLargerSyntaxNode", // Expand selection
 509      "alt-shift-left": "editor::SelectSmallerSyntaxNode", // Shrink selection
 510      "ctrl-shift-l": "editor::SelectAllMatches", // Select all occurrences of current selection
 511      "ctrl-f2": "editor::SelectAllMatches", // Select all occurrences of current word
 512      "ctrl-d": ["editor::SelectNext", { "replace_newest": false }], // editor.action.addSelectionToNextFindMatch  / find_under_expand
 513      "ctrl-shift-down": ["editor::SelectNext", { "replace_newest": false }], // editor.action.addSelectionToNextFindMatch
 514      "ctrl-shift-up": ["editor::SelectPrevious", { "replace_newest": false }], // editor.action.addSelectionToPreviousFindMatch
 515      "ctrl-k ctrl-d": ["editor::SelectNext", { "replace_newest": true }], // editor.action.moveSelectionToNextFindMatch  / find_under_expand_skip
 516      "ctrl-k ctrl-shift-d": ["editor::SelectPrevious", { "replace_newest": true }], // editor.action.moveSelectionToPreviousFindMatch
 517      "ctrl-k ctrl-i": "editor::Hover",
 518      "ctrl-k ctrl-b": "editor::BlameHover",
 519      "ctrl-/": ["editor::ToggleComments", { "advance_downwards": false }],
 520      "f8": ["editor::GoToDiagnostic", { "severity": { "min": "hint", "max": "error" } }],
 521      "shift-f8": ["editor::GoToPreviousDiagnostic", { "severity": { "min": "hint", "max": "error" } }],
 522      "f2": "editor::Rename",
 523      "f12": "editor::GoToDefinition",
 524      "alt-f12": "editor::GoToDefinitionSplit",
 525      "ctrl-shift-f10": "editor::GoToDefinitionSplit",
 526      "ctrl-f12": "editor::GoToTypeDefinition",
 527      "shift-f12": "editor::GoToImplementation",
 528      "alt-ctrl-f12": "editor::GoToTypeDefinitionSplit",
 529      "alt-shift-f12": "editor::FindAllReferences",
 530      "ctrl-m": "editor::MoveToEnclosingBracket", // from jetbrains
 531      "ctrl-|": "editor::MoveToEnclosingBracket",
 532      "ctrl-{": "editor::Fold",
 533      "ctrl-}": "editor::UnfoldLines",
 534      "ctrl-k ctrl-l": "editor::ToggleFold",
 535      "ctrl-k ctrl-[": "editor::FoldRecursive",
 536      "ctrl-k ctrl-]": "editor::UnfoldRecursive",
 537      "ctrl-k ctrl-1": ["editor::FoldAtLevel", 1],
 538      "ctrl-k ctrl-2": ["editor::FoldAtLevel", 2],
 539      "ctrl-k ctrl-3": ["editor::FoldAtLevel", 3],
 540      "ctrl-k ctrl-4": ["editor::FoldAtLevel", 4],
 541      "ctrl-k ctrl-5": ["editor::FoldAtLevel", 5],
 542      "ctrl-k ctrl-6": ["editor::FoldAtLevel", 6],
 543      "ctrl-k ctrl-7": ["editor::FoldAtLevel", 7],
 544      "ctrl-k ctrl-8": ["editor::FoldAtLevel", 8],
 545      "ctrl-k ctrl-9": ["editor::FoldAtLevel", 9],
 546      "ctrl-k ctrl-0": "editor::FoldAll",
 547      "ctrl-k ctrl-j": "editor::UnfoldAll",
 548      "ctrl-space": "editor::ShowCompletions",
 549      "ctrl-shift-space": "editor::ShowWordCompletions",
 550      "ctrl-.": "editor::ToggleCodeActions",
 551      "ctrl-k r": "editor::RevealInFileManager",
 552      "ctrl-k p": "editor::CopyPath",
 553      "ctrl-\\": "pane::SplitRight",
 554      "ctrl-alt-shift-c": "editor::DisplayCursorNames",
 555      "alt-.": "editor::GoToHunk",
 556      "alt-,": "editor::GoToPreviousHunk"
 557    }
 558  },
 559  {
 560    "context": "Editor && extension == md",
 561    "use_key_equivalents": true,
 562    "bindings": {
 563      "ctrl-k v": "markdown::OpenPreviewToTheSide",
 564      "ctrl-shift-v": "markdown::OpenPreview"
 565    }
 566  },
 567  {
 568    "context": "Editor && extension == svg",
 569    "use_key_equivalents": true,
 570    "bindings": {
 571      "ctrl-k v": "svg::OpenPreviewToTheSide",
 572      "ctrl-shift-v": "svg::OpenPreview"
 573    }
 574  },
 575  {
 576    "context": "Editor && mode == full",
 577    "bindings": {
 578      "ctrl-shift-o": "outline::Toggle",
 579      "ctrl-g": "go_to_line::Toggle"
 580    }
 581  },
 582  {
 583    "context": "Workspace",
 584    "bindings": {
 585      "alt-open": ["projects::OpenRecent", { "create_new_window": false }],
 586      // Change the default action on `menu::Confirm` by setting the parameter
 587      // "alt-ctrl-o": ["projects::OpenRecent", { "create_new_window": true }],
 588      "alt-ctrl-o": ["projects::OpenRecent", { "create_new_window": false }],
 589      "alt-shift-open": ["projects::OpenRemote", { "from_existing_connection": false, "create_new_window": false }],
 590      // Change to open path modal for existing remote connection by setting the parameter
 591      // "alt-ctrl-shift-o": "["projects::OpenRemote", { "from_existing_connection": true }]",
 592      "alt-ctrl-shift-o": ["projects::OpenRemote", { "from_existing_connection": false, "create_new_window": false }],
 593      "alt-ctrl-shift-b": "branches::OpenRecent",
 594      "alt-shift-enter": "toast::RunAction",
 595      "ctrl-~": "workspace::NewTerminal",
 596      "save": "workspace::Save",
 597      "ctrl-s": "workspace::Save",
 598      "ctrl-k s": "workspace::SaveWithoutFormat",
 599      "shift-save": "workspace::SaveAs",
 600      "ctrl-shift-s": "workspace::SaveAs",
 601      "new": "workspace::NewFile",
 602      "ctrl-n": "workspace::NewFile",
 603      "shift-new": "workspace::NewWindow",
 604      "ctrl-shift-n": "workspace::NewWindow",
 605      "ctrl-`": "terminal_panel::Toggle",
 606      "f10": ["app_menu::OpenApplicationMenu", "Zed"],
 607      "alt-1": ["workspace::ActivatePane", 0],
 608      "alt-2": ["workspace::ActivatePane", 1],
 609      "alt-3": ["workspace::ActivatePane", 2],
 610      "alt-4": ["workspace::ActivatePane", 3],
 611      "alt-5": ["workspace::ActivatePane", 4],
 612      "alt-6": ["workspace::ActivatePane", 5],
 613      "alt-7": ["workspace::ActivatePane", 6],
 614      "alt-8": ["workspace::ActivatePane", 7],
 615      "alt-9": ["workspace::ActivatePane", 8],
 616      "ctrl-alt-b": "workspace::ToggleRightDock",
 617      "ctrl-b": "workspace::ToggleLeftDock",
 618      "ctrl-j": "workspace::ToggleBottomDock",
 619      "ctrl-alt-y": "workspace::CloseAllDocks",
 620      "ctrl-alt-0": "workspace::ResetActiveDockSize",
 621      // For 0px parameter, uses UI font size value.
 622      "ctrl-alt--": ["workspace::DecreaseActiveDockSize", { "px": 0 }],
 623      "ctrl-alt-=": ["workspace::IncreaseActiveDockSize", { "px": 0 }],
 624      "ctrl-alt-)": "workspace::ResetOpenDocksSize",
 625      "ctrl-alt-_": ["workspace::DecreaseOpenDocksSize", { "px": 0 }],
 626      "ctrl-alt-+": ["workspace::IncreaseOpenDocksSize", { "px": 0 }],
 627      "shift-find": "pane::DeploySearch",
 628      "ctrl-shift-f": "pane::DeploySearch",
 629      "ctrl-shift-h": ["pane::DeploySearch", { "replace_enabled": true }],
 630      "ctrl-shift-t": "pane::ReopenClosedItem",
 631      "ctrl-k ctrl-s": "zed::OpenKeymapEditor",
 632      "ctrl-k ctrl-t": "theme_selector::Toggle",
 633      "ctrl-alt-super-p": "settings_profile_selector::Toggle",
 634      "ctrl-t": "project_symbols::Toggle",
 635      "ctrl-p": "file_finder::Toggle",
 636      "ctrl-tab": "tab_switcher::Toggle",
 637      "ctrl-shift-tab": ["tab_switcher::Toggle", { "select_last": true }],
 638      "ctrl-e": "file_finder::Toggle",
 639      "f1": "command_palette::Toggle",
 640      "ctrl-shift-p": "command_palette::Toggle",
 641      "ctrl-shift-m": "diagnostics::Deploy",
 642      "ctrl-shift-e": "project_panel::ToggleFocus",
 643      "ctrl-shift-b": "outline_panel::ToggleFocus",
 644      "ctrl-shift-g": "git_panel::ToggleFocus",
 645      "ctrl-shift-d": "debug_panel::ToggleFocus",
 646      "ctrl-?": "agent::ToggleFocus",
 647      "alt-save": "workspace::SaveAll",
 648      "ctrl-alt-s": "workspace::SaveAll",
 649      "ctrl-k m": "language_selector::Toggle",
 650      "ctrl-k ctrl-m": "toolchain::AddToolchain",
 651      "escape": "workspace::Unfollow",
 652      "ctrl-k ctrl-left": "workspace::ActivatePaneLeft",
 653      "ctrl-k ctrl-right": "workspace::ActivatePaneRight",
 654      "ctrl-k ctrl-up": "workspace::ActivatePaneUp",
 655      "ctrl-k ctrl-down": "workspace::ActivatePaneDown",
 656      "ctrl-k shift-left": "workspace::SwapPaneLeft",
 657      "ctrl-k shift-right": "workspace::SwapPaneRight",
 658      "ctrl-k shift-up": "workspace::SwapPaneUp",
 659      "ctrl-k shift-down": "workspace::SwapPaneDown",
 660      "ctrl-shift-x": "zed::Extensions",
 661      // All task parameters are captured and unchanged between reruns by default.
 662      // Use the `"reevaluate_context"` parameter to control this.
 663      "ctrl-shift-r": ["task::Rerun", { "reevaluate_context": false }],
 664      "ctrl-alt-r": "task::Rerun",
 665      "alt-t": "task::Rerun",
 666      "alt-shift-t": "task::Spawn",
 667      "alt-shift-r": ["task::Spawn", { "reveal_target": "center" }],
 668      // also possible to spawn tasks by name:
 669      // "foo-bar": ["task::Spawn", { "task_name": "MyTask", "reveal_target": "dock" }]
 670      // or by tag:
 671      // "foo-bar": ["task::Spawn", { "task_tag": "MyTag" }],
 672      "f5": "debugger::Rerun",
 673      "ctrl-f4": "workspace::CloseActiveDock",
 674      "ctrl-w": "workspace::CloseActiveDock"
 675    }
 676  },
 677  {
 678    "context": "Workspace && debugger_running",
 679    "bindings": {
 680      "f5": "zed::NoAction"
 681    }
 682  },
 683  {
 684    "context": "Workspace && debugger_stopped",
 685    "bindings": {
 686      "f5": "debugger::Continue"
 687    }
 688  },
 689  {
 690    "context": "ApplicationMenu",
 691    "bindings": {
 692      "f10": "menu::Cancel",
 693      "left": "app_menu::ActivateMenuLeft",
 694      "right": "app_menu::ActivateMenuRight"
 695    }
 696  },
 697  // Bindings from Sublime Text
 698  {
 699    "context": "Editor",
 700    "bindings": {
 701      "ctrl-u": "editor::UndoSelection",
 702      "ctrl-shift-u": "editor::RedoSelection",
 703      "ctrl-shift-j": "editor::JoinLines",
 704      "ctrl-alt-backspace": "editor::DeleteToPreviousSubwordStart",
 705      "ctrl-alt-h": "editor::DeleteToPreviousSubwordStart",
 706      "ctrl-alt-delete": "editor::DeleteToNextSubwordEnd",
 707      "ctrl-alt-d": "editor::DeleteToNextSubwordEnd",
 708      "ctrl-alt-left": "editor::MoveToPreviousSubwordStart",
 709      "ctrl-alt-right": "editor::MoveToNextSubwordEnd",
 710      "ctrl-alt-shift-left": "editor::SelectToPreviousSubwordStart",
 711      "ctrl-alt-shift-b": "editor::SelectToPreviousSubwordStart",
 712      "ctrl-alt-shift-right": "editor::SelectToNextSubwordEnd",
 713      "ctrl-alt-shift-f": "editor::SelectToNextSubwordEnd"
 714    }
 715  },
 716  // Bindings from Atom
 717  {
 718    "context": "Pane",
 719    "bindings": {
 720      "ctrl-k up": "pane::SplitUp",
 721      "ctrl-k down": "pane::SplitDown",
 722      "ctrl-k left": "pane::SplitLeft",
 723      "ctrl-k right": "pane::SplitRight"
 724    }
 725  },
 726  // Bindings that should be unified with bindings for more general actions
 727  {
 728    "context": "Editor && renaming",
 729    "bindings": {
 730      "enter": "editor::ConfirmRename"
 731    }
 732  },
 733  {
 734    "context": "Editor && showing_completions",
 735    "bindings": {
 736      "enter": "editor::ConfirmCompletion",
 737      "shift-enter": "editor::ConfirmCompletionReplace",
 738      "tab": "editor::ComposeCompletion"
 739    }
 740  },
 741  // Bindings for accepting edit predictions
 742  //
 743  // alt-l is provided as an alternative to tab/alt-tab. and will be displayed in the UI. This is
 744  // because alt-tab may not be available, as it is often used for window switching.
 745  {
 746    "context": "Editor && edit_prediction",
 747    "bindings": {
 748      "alt-tab": "editor::AcceptEditPrediction",
 749      "alt-l": "editor::AcceptEditPrediction",
 750      "tab": "editor::AcceptEditPrediction",
 751      "alt-right": "editor::AcceptPartialEditPrediction"
 752    }
 753  },
 754  {
 755    "context": "Editor && edit_prediction_conflict",
 756    "bindings": {
 757      "alt-tab": "editor::AcceptEditPrediction",
 758      "alt-l": "editor::AcceptEditPrediction",
 759      "alt-right": "editor::AcceptPartialEditPrediction"
 760    }
 761  },
 762  {
 763    "context": "Editor && showing_code_actions",
 764    "bindings": {
 765      "enter": "editor::ConfirmCodeAction"
 766    }
 767  },
 768  {
 769    "context": "Editor && (showing_code_actions || showing_completions)",
 770    "bindings": {
 771      "ctrl-p": "editor::ContextMenuPrevious",
 772      "up": "editor::ContextMenuPrevious",
 773      "ctrl-n": "editor::ContextMenuNext",
 774      "down": "editor::ContextMenuNext",
 775      "pageup": "editor::ContextMenuFirst",
 776      "pagedown": "editor::ContextMenuLast"
 777    }
 778  },
 779  {
 780    "context": "Editor && showing_signature_help && !showing_completions",
 781    "bindings": {
 782      "up": "editor::SignatureHelpPrevious",
 783      "down": "editor::SignatureHelpNext"
 784    }
 785  },
 786  // Custom bindings
 787  {
 788    "bindings": {
 789      "ctrl-alt-shift-f": "workspace::FollowNextCollaborator",
 790      // Only available in debug builds: opens an element inspector for development.
 791      "ctrl-alt-i": "dev::ToggleInspector"
 792    }
 793  },
 794  {
 795    "context": "!Terminal",
 796    "bindings": {
 797      "ctrl-shift-c": "collab_panel::ToggleFocus"
 798    }
 799  },
 800  {
 801    "context": "!ContextEditor > Editor && mode == full",
 802    "bindings": {
 803      "alt-enter": "editor::OpenExcerpts",
 804      "shift-enter": "editor::ExpandExcerpts",
 805      "ctrl-alt-enter": "editor::OpenExcerptsSplit",
 806      "ctrl-shift-e": "pane::RevealInProjectPanel",
 807      "ctrl-f8": "editor::GoToHunk",
 808      "ctrl-shift-f8": "editor::GoToPreviousHunk",
 809      "ctrl-enter": "assistant::InlineAssist",
 810      "ctrl-:": "editor::ToggleInlayHints"
 811    }
 812  },
 813  {
 814    "context": "PromptEditor",
 815    "bindings": {
 816      "ctrl-[": "agent::CyclePreviousInlineAssist",
 817      "ctrl-]": "agent::CycleNextInlineAssist",
 818      "ctrl-alt-e": "agent::RemoveAllContext"
 819    }
 820  },
 821  {
 822    "context": "Prompt",
 823    "bindings": {
 824      "left": "menu::SelectPrevious",
 825      "right": "menu::SelectNext",
 826      "h": "menu::SelectPrevious",
 827      "l": "menu::SelectNext"
 828    }
 829  },
 830  {
 831    "context": "ProjectSearchBar && !in_replace",
 832    "bindings": {
 833      "ctrl-enter": "project_search::SearchInNew"
 834    }
 835  },
 836  {
 837    "context": "OutlinePanel && not_editing",
 838    "bindings": {
 839      "escape": "menu::Cancel",
 840      "left": "outline_panel::CollapseSelectedEntry",
 841      "right": "outline_panel::ExpandSelectedEntry",
 842      "alt-copy": "outline_panel::CopyPath",
 843      "ctrl-alt-c": "outline_panel::CopyPath",
 844      "alt-shift-copy": "workspace::CopyRelativePath",
 845      "alt-ctrl-shift-c": "workspace::CopyRelativePath",
 846      "alt-ctrl-r": "outline_panel::RevealInFileManager",
 847      "space": "outline_panel::OpenSelectedEntry",
 848      "shift-down": "menu::SelectNext",
 849      "shift-up": "menu::SelectPrevious",
 850      "alt-enter": "editor::OpenExcerpts",
 851      "ctrl-alt-enter": "editor::OpenExcerptsSplit"
 852    }
 853  },
 854  {
 855    "context": "ProjectPanel",
 856    "bindings": {
 857      "left": "project_panel::CollapseSelectedEntry",
 858      "right": "project_panel::ExpandSelectedEntry",
 859      "new": "project_panel::NewFile",
 860      "ctrl-n": "project_panel::NewFile",
 861      "alt-new": "project_panel::NewDirectory",
 862      "alt-ctrl-n": "project_panel::NewDirectory",
 863      "cut": "project_panel::Cut",
 864      "ctrl-x": "project_panel::Cut",
 865      "copy": "project_panel::Copy",
 866      "ctrl-insert": "project_panel::Copy",
 867      "ctrl-c": "project_panel::Copy",
 868      "paste": "project_panel::Paste",
 869      "shift-insert": "project_panel::Paste",
 870      "ctrl-v": "project_panel::Paste",
 871      "alt-copy": "project_panel::CopyPath",
 872      "ctrl-alt-c": "project_panel::CopyPath",
 873      "alt-shift-copy": "workspace::CopyRelativePath",
 874      "alt-ctrl-shift-c": "workspace::CopyRelativePath",
 875      "enter": "project_panel::Rename",
 876      "f2": "project_panel::Rename",
 877      "backspace": ["project_panel::Trash", { "skip_prompt": false }],
 878      "delete": ["project_panel::Trash", { "skip_prompt": false }],
 879      "shift-delete": ["project_panel::Delete", { "skip_prompt": false }],
 880      "ctrl-backspace": ["project_panel::Delete", { "skip_prompt": false }],
 881      "ctrl-delete": ["project_panel::Delete", { "skip_prompt": false }],
 882      "alt-ctrl-r": "project_panel::RevealInFileManager",
 883      "ctrl-shift-enter": "workspace::OpenWithSystem",
 884      "alt-d": "project_panel::CompareMarkedFiles",
 885      "shift-find": "project_panel::NewSearchInDirectory",
 886      "ctrl-alt-shift-f": "project_panel::NewSearchInDirectory",
 887      "shift-down": "menu::SelectNext",
 888      "shift-up": "menu::SelectPrevious",
 889      "escape": "menu::Cancel"
 890    }
 891  },
 892  {
 893    "context": "ProjectPanel && not_editing",
 894    "bindings": {
 895      "space": "project_panel::Open"
 896    }
 897  },
 898  {
 899    "context": "GitPanel && ChangesList",
 900    "bindings": {
 901      "up": "menu::SelectPrevious",
 902      "down": "menu::SelectNext",
 903      "enter": "menu::Confirm",
 904      "alt-y": "git::StageFile",
 905      "alt-shift-y": "git::UnstageFile",
 906      "ctrl-alt-y": "git::ToggleStaged",
 907      "space": "git::ToggleStaged",
 908      "shift-space": "git::StageRange",
 909      "tab": "git_panel::FocusEditor",
 910      "shift-tab": "git_panel::FocusEditor",
 911      "escape": "git_panel::ToggleFocus",
 912      "alt-enter": "menu::SecondaryConfirm",
 913      "delete": ["git::RestoreFile", { "skip_prompt": false }],
 914      "backspace": ["git::RestoreFile", { "skip_prompt": false }],
 915      "shift-delete": ["git::RestoreFile", { "skip_prompt": false }],
 916      "ctrl-backspace": ["git::RestoreFile", { "skip_prompt": false }],
 917      "ctrl-delete": ["git::RestoreFile", { "skip_prompt": false }]
 918    }
 919  },
 920  {
 921    "context": "GitPanel && CommitEditor",
 922    "use_key_equivalents": true,
 923    "bindings": {
 924      "escape": "git::Cancel"
 925    }
 926  },
 927  {
 928    "context": "GitCommit > Editor",
 929    "bindings": {
 930      "escape": "menu::Cancel",
 931      "enter": "editor::Newline",
 932      "ctrl-enter": "git::Commit",
 933      "ctrl-shift-enter": "git::Amend",
 934      "alt-l": "git::GenerateCommitMessage"
 935    }
 936  },
 937  {
 938    "context": "GitPanel",
 939    "bindings": {
 940      "ctrl-g ctrl-g": "git::Fetch",
 941      "ctrl-g up": "git::Push",
 942      "ctrl-g down": "git::Pull",
 943      "ctrl-g shift-up": "git::ForcePush",
 944      "ctrl-g d": "git::Diff",
 945      "ctrl-g backspace": "git::RestoreTrackedFiles",
 946      "ctrl-g shift-backspace": "git::TrashUntrackedFiles",
 947      "ctrl-space": "git::StageAll",
 948      "ctrl-shift-space": "git::UnstageAll",
 949      "ctrl-enter": "git::Commit",
 950      "ctrl-shift-enter": "git::Amend"
 951    }
 952  },
 953  {
 954    "context": "GitDiff > Editor",
 955    "bindings": {
 956      "ctrl-enter": "git::Commit",
 957      "ctrl-shift-enter": "git::Amend",
 958      "ctrl-space": "git::StageAll",
 959      "ctrl-shift-space": "git::UnstageAll"
 960    }
 961  },
 962  {
 963    "context": "AskPass > Editor",
 964    "bindings": {
 965      "enter": "menu::Confirm"
 966    }
 967  },
 968  {
 969    "context": "CommitEditor > Editor",
 970    "bindings": {
 971      "escape": "git_panel::FocusChanges",
 972      "tab": "git_panel::FocusChanges",
 973      "shift-tab": "git_panel::FocusChanges",
 974      "enter": "editor::Newline",
 975      "ctrl-enter": "git::Commit",
 976      "ctrl-shift-enter": "git::Amend",
 977      "alt-up": "git_panel::FocusChanges",
 978      "alt-l": "git::GenerateCommitMessage"
 979    }
 980  },
 981  {
 982    "context": "DebugPanel",
 983    "bindings": {
 984      "ctrl-t": "debugger::ToggleThreadPicker",
 985      "ctrl-i": "debugger::ToggleSessionPicker",
 986      "shift-alt-escape": "debugger::ToggleExpandItem"
 987    }
 988  },
 989  {
 990    "context": "VariableList",
 991    "bindings": {
 992      "left": "variable_list::CollapseSelectedEntry",
 993      "right": "variable_list::ExpandSelectedEntry",
 994      "enter": "variable_list::EditVariable",
 995      "ctrl-c": "variable_list::CopyVariableValue",
 996      "ctrl-alt-c": "variable_list::CopyVariableName",
 997      "delete": "variable_list::RemoveWatch",
 998      "backspace": "variable_list::RemoveWatch",
 999      "alt-enter": "variable_list::AddWatch"
1000    }
1001  },
1002  {
1003    "context": "BreakpointList",
1004    "bindings": {
1005      "space": "debugger::ToggleEnableBreakpoint",
1006      "backspace": "debugger::UnsetBreakpoint",
1007      "left": "debugger::PreviousBreakpointProperty",
1008      "right": "debugger::NextBreakpointProperty"
1009    }
1010  },
1011  {
1012    "context": "CollabPanel && not_editing",
1013    "bindings": {
1014      "ctrl-backspace": "collab_panel::Remove",
1015      "space": "menu::Confirm"
1016    }
1017  },
1018  {
1019    "context": "CollabPanel",
1020    "bindings": {
1021      "alt-up": "collab_panel::MoveChannelUp",
1022      "alt-down": "collab_panel::MoveChannelDown"
1023    }
1024  },
1025  {
1026    "context": "(CollabPanel && editing) > Editor",
1027    "bindings": {
1028      "space": "collab_panel::InsertSpace"
1029    }
1030  },
1031  {
1032    "context": "ChannelModal",
1033    "bindings": {
1034      "tab": "channel_modal::ToggleMode"
1035    }
1036  },
1037  {
1038    "context": "Picker > Editor",
1039    "bindings": {
1040      "escape": "menu::Cancel",
1041      "up": "menu::SelectPrevious",
1042      "down": "menu::SelectNext",
1043      "tab": "picker::ConfirmCompletion",
1044      "alt-enter": ["picker::ConfirmInput", { "secondary": false }]
1045    }
1046  },
1047  {
1048    "context": "ChannelModal > Picker > Editor",
1049    "bindings": {
1050      "tab": "channel_modal::ToggleMode"
1051    }
1052  },
1053  {
1054    "context": "ToolchainSelector",
1055    "use_key_equivalents": true,
1056    "bindings": {
1057      "ctrl-shift-a": "toolchain::AddToolchain"
1058    }
1059  },
1060  {
1061    "context": "FileFinder || (FileFinder > Picker > Editor)",
1062    "bindings": {
1063      "ctrl-p": "file_finder::Toggle",
1064      "ctrl-shift-a": "file_finder::ToggleSplitMenu",
1065      "ctrl-shift-i": "file_finder::ToggleFilterMenu"
1066    }
1067  },
1068  {
1069    "context": "FileFinder || (FileFinder > Picker > Editor) || (FileFinder > Picker > menu)",
1070    "bindings": {
1071      "ctrl-shift-p": "file_finder::SelectPrevious",
1072      "ctrl-j": "pane::SplitDown",
1073      "ctrl-k": "pane::SplitUp",
1074      "ctrl-h": "pane::SplitLeft",
1075      "ctrl-l": "pane::SplitRight"
1076    }
1077  },
1078  {
1079    "context": "TabSwitcher",
1080    "bindings": {
1081      "ctrl-shift-tab": "menu::SelectPrevious",
1082      "ctrl-up": "menu::SelectPrevious",
1083      "ctrl-down": "menu::SelectNext",
1084      "ctrl-backspace": "tab_switcher::CloseSelectedItem"
1085    }
1086  },
1087  {
1088    "context": "StashList || (StashList > Picker > Editor)",
1089    "bindings": {
1090      "ctrl-shift-backspace": "stash_picker::DropStashItem"
1091    }
1092  },
1093  {
1094    "context": "Terminal",
1095    "bindings": {
1096      "ctrl-alt-space": "terminal::ShowCharacterPalette",
1097      "copy": "terminal::Copy",
1098      "ctrl-insert": "terminal::Copy",
1099      "ctrl-shift-c": "terminal::Copy",
1100      "paste": "terminal::Paste",
1101      "shift-insert": "terminal::Paste",
1102      "ctrl-shift-v": "terminal::Paste",
1103      "ctrl-enter": "assistant::InlineAssist",
1104      "alt-b": ["terminal::SendText", "\u001bb"],
1105      "alt-f": ["terminal::SendText", "\u001bf"],
1106      "alt-.": ["terminal::SendText", "\u001b."],
1107      "ctrl-delete": ["terminal::SendText", "\u001bd"],
1108      // Overrides for conflicting keybindings
1109      "ctrl-b": ["terminal::SendKeystroke", "ctrl-b"],
1110      "ctrl-c": ["terminal::SendKeystroke", "ctrl-c"],
1111      "ctrl-e": ["terminal::SendKeystroke", "ctrl-e"],
1112      "ctrl-o": ["terminal::SendKeystroke", "ctrl-o"],
1113      "ctrl-w": ["terminal::SendKeystroke", "ctrl-w"],
1114      "ctrl-backspace": ["terminal::SendKeystroke", "ctrl-w"],
1115      "ctrl-shift-a": "editor::SelectAll",
1116      "find": "buffer_search::Deploy",
1117      "ctrl-shift-f": "buffer_search::Deploy",
1118      "ctrl-shift-l": "terminal::Clear",
1119      "ctrl-shift-w": "pane::CloseActiveItem",
1120      "up": ["terminal::SendKeystroke", "up"],
1121      "pageup": ["terminal::SendKeystroke", "pageup"],
1122      "down": ["terminal::SendKeystroke", "down"],
1123      "pagedown": ["terminal::SendKeystroke", "pagedown"],
1124      "escape": ["terminal::SendKeystroke", "escape"],
1125      "enter": ["terminal::SendKeystroke", "enter"],
1126      "shift-pageup": "terminal::ScrollPageUp",
1127      "shift-pagedown": "terminal::ScrollPageDown",
1128      "shift-up": "terminal::ScrollLineUp",
1129      "shift-down": "terminal::ScrollLineDown",
1130      "shift-home": "terminal::ScrollToTop",
1131      "shift-end": "terminal::ScrollToBottom",
1132      "ctrl-shift-space": "terminal::ToggleViMode",
1133      "ctrl-shift-r": "terminal::RerunTask",
1134      "ctrl-alt-r": "terminal::RerunTask",
1135      "alt-t": "terminal::RerunTask"
1136    }
1137  },
1138  {
1139    "context": "ZedPredictModal",
1140    "bindings": {
1141      "escape": "menu::Cancel"
1142    }
1143  },
1144  {
1145    "context": "ConfigureContextServerModal > Editor",
1146    "bindings": {
1147      "escape": "menu::Cancel",
1148      "enter": "editor::Newline",
1149      "ctrl-enter": "menu::Confirm"
1150    }
1151  },
1152  {
1153    "context": "ContextServerToolsModal",
1154    "use_key_equivalents": true,
1155    "bindings": {
1156      "escape": "menu::Cancel"
1157    }
1158  },
1159  {
1160    "context": "OnboardingAiConfigurationModal",
1161    "use_key_equivalents": true,
1162    "bindings": {
1163      "escape": "menu::Cancel"
1164    }
1165  },
1166  {
1167    "context": "Diagnostics",
1168    "use_key_equivalents": true,
1169    "bindings": {
1170      "ctrl-r": "diagnostics::ToggleDiagnosticsRefresh"
1171    }
1172  },
1173  {
1174    "context": "DebugConsole > Editor",
1175    "use_key_equivalents": true,
1176    "bindings": {
1177      "enter": "menu::Confirm",
1178      "alt-enter": "console::WatchExpression"
1179    }
1180  },
1181  {
1182    "context": "RunModal",
1183    "bindings": {
1184      "ctrl-tab": "pane::ActivateNextItem",
1185      "ctrl-shift-tab": "pane::ActivatePreviousItem"
1186    }
1187  },
1188  {
1189    "context": "MarkdownPreview",
1190    "bindings": {
1191      "pageup": "markdown::MovePageUp",
1192      "pagedown": "markdown::MovePageDown"
1193    }
1194  },
1195  {
1196    "context": "KeymapEditor",
1197    "use_key_equivalents": true,
1198    "bindings": {
1199      "ctrl-f": "search::FocusSearch",
1200      "alt-find": "keymap_editor::ToggleKeystrokeSearch",
1201      "alt-ctrl-f": "keymap_editor::ToggleKeystrokeSearch",
1202      "alt-c": "keymap_editor::ToggleConflictFilter",
1203      "enter": "keymap_editor::EditBinding",
1204      "alt-enter": "keymap_editor::CreateBinding",
1205      "ctrl-c": "keymap_editor::CopyAction",
1206      "ctrl-shift-c": "keymap_editor::CopyContext",
1207      "ctrl-t": "keymap_editor::ShowMatchingKeybinds"
1208    }
1209  },
1210  {
1211    "context": "KeystrokeInput",
1212    "use_key_equivalents": true,
1213    "bindings": {
1214      "enter": "keystroke_input::StartRecording",
1215      "escape escape escape": "keystroke_input::StopRecording",
1216      "delete": "keystroke_input::ClearKeystrokes"
1217    }
1218  },
1219  {
1220    "context": "KeybindEditorModal",
1221    "use_key_equivalents": true,
1222    "bindings": {
1223      "ctrl-enter": "menu::Confirm",
1224      "escape": "menu::Cancel"
1225    }
1226  },
1227  {
1228    "context": "KeybindEditorModal > Editor",
1229    "use_key_equivalents": true,
1230    "bindings": {
1231      "up": "menu::SelectPrevious",
1232      "down": "menu::SelectNext"
1233    }
1234  },
1235  {
1236    "context": "Onboarding",
1237    "use_key_equivalents": true,
1238    "bindings": {
1239      "ctrl-1": "onboarding::ActivateBasicsPage",
1240      "ctrl-2": "onboarding::ActivateEditingPage",
1241      "ctrl-3": "onboarding::ActivateAISetupPage",
1242      "ctrl-enter": "onboarding::Finish",
1243      "alt-shift-l": "onboarding::SignIn",
1244      "alt-shift-a": "onboarding::OpenAccount"
1245    }
1246  },
1247  {
1248    "context": "InvalidBuffer",
1249    "use_key_equivalents": true,
1250    "bindings": {
1251      "ctrl-shift-enter": "workspace::OpenWithSystem"
1252    }
1253  }
1254]