default-macos.json

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