sublime_text.json

  1[
  2  {
  3    "bindings": {
  4      "ctrl-{": "pane::ActivatePreviousItem",
  5      "ctrl-}": "pane::ActivateNextItem",
  6      "ctrl-pageup": "pane::ActivatePreviousItem",
  7      "ctrl-pagedown": "pane::ActivateNextItem",
  8      "ctrl-1": ["workspace::ActivatePane", 0],
  9      "ctrl-2": ["workspace::ActivatePane", 1],
 10      "ctrl-3": ["workspace::ActivatePane", 2],
 11      "ctrl-4": ["workspace::ActivatePane", 3],
 12      "ctrl-5": ["workspace::ActivatePane", 4],
 13      "ctrl-6": ["workspace::ActivatePane", 5],
 14      "ctrl-7": ["workspace::ActivatePane", 6],
 15      "ctrl-8": ["workspace::ActivatePane", 7],
 16      "ctrl-9": ["workspace::ActivatePane", 8],
 17      "ctrl-!": ["workspace::MoveItemToPane", { "destination": 0, "focus": true }],
 18      "ctrl-@": ["workspace::MoveItemToPane", { "destination": 1 }],
 19      "ctrl-#": ["workspace::MoveItemToPane", { "destination": 2 }],
 20      "ctrl-$": ["workspace::MoveItemToPane", { "destination": 3 }],
 21      "ctrl-%": ["workspace::MoveItemToPane", { "destination": 4 }],
 22      "ctrl-^": ["workspace::MoveItemToPane", { "destination": 5 }],
 23      "ctrl-&": ["workspace::MoveItemToPane", { "destination": 6 }],
 24      "ctrl-*": ["workspace::MoveItemToPane", { "destination": 7 }],
 25      "ctrl-(": ["workspace::MoveItemToPane", { "destination": 8 }]
 26    }
 27  },
 28  {
 29    "context": "Editor",
 30    "bindings": {
 31      "ctrl-alt-up": "editor::AddSelectionAbove",
 32      "ctrl-alt-down": "editor::AddSelectionBelow",
 33      "ctrl-shift-up": "editor::MoveLineUp",
 34      "ctrl-shift-down": "editor::MoveLineDown",
 35      "ctrl-shift-m": "editor::SelectLargerSyntaxNode",
 36      "ctrl-shift-l": "editor::SplitSelectionIntoLines",
 37      "ctrl-shift-a": "editor::SelectLargerSyntaxNode",
 38      "ctrl-shift-d": "editor::DuplicateSelection",
 39      "alt-f3": "editor::SelectAllMatches", // find_all_under
 40      // "ctrl-f3": "", // find_under (cancels any selections)
 41      // "ctrl-alt-shift-g": "" // find_under_prev (cancels any selections)
 42      "f9": "editor::SortLinesCaseSensitive",
 43      "ctrl-f9": "editor::SortLinesCaseInsensitive",
 44      "f12": "editor::GoToDefinition", // lsp_symbol_definition
 45      "ctrl-f12": "editor::GoToDefinitionSplit",
 46      "shift-f12": "editor::FindAllReferences", // lsp_symbol_references
 47      "ctrl-shift-f12": "editor::FindAllReferences",
 48      "ctrl-.": "editor::GoToHunk",
 49      "ctrl-,": "editor::GoToPreviousHunk",
 50      "ctrl-k ctrl-u": "editor::ConvertToUpperCase",
 51      "ctrl-k ctrl-l": "editor::ConvertToLowerCase",
 52      "shift-alt-m": "markdown::OpenPreviewToTheSide",
 53      "ctrl-backspace": "editor::DeleteToPreviousWordStart",
 54      "ctrl-delete": "editor::DeleteToNextWordEnd",
 55      "alt-right": "editor::MoveToNextSubwordEnd",
 56      "alt-left": "editor::MoveToPreviousSubwordStart",
 57      "alt-shift-right": "editor::SelectToNextSubwordEnd",
 58      "alt-shift-left": "editor::SelectToPreviousSubwordStart"
 59    }
 60  },
 61  {
 62    "context": "Editor && mode == full",
 63    "bindings": {
 64      "ctrl-alt-space": "editor::ShowSignatureHelp", // lsp_signature_help_show
 65      "ctrl-shift-r": "project_symbols::Toggle", // lsp_workspace_symbols
 66      "ctrl-r": "outline::Toggle" // lsp_document_symbols
 67    }
 68  },
 69  {
 70    "context": "Editor && !agent_diff",
 71    "bindings": {
 72      "ctrl-k ctrl-z": "git::Restore"
 73    }
 74  },
 75  {
 76    "context": "Pane",
 77    "bindings": {
 78      "f4": "search::SelectNextMatch",
 79      "shift-f4": "search::SelectPreviousMatch",
 80      "alt-1": ["pane::ActivateItem", 0],
 81      "alt-2": ["pane::ActivateItem", 1],
 82      "alt-3": ["pane::ActivateItem", 2],
 83      "alt-4": ["pane::ActivateItem", 3],
 84      "alt-5": ["pane::ActivateItem", 4],
 85      "alt-6": ["pane::ActivateItem", 5],
 86      "alt-7": ["pane::ActivateItem", 6],
 87      "alt-8": ["pane::ActivateItem", 7],
 88      "alt-9": "pane::ActivateLastItem"
 89    }
 90  },
 91  {
 92    "context": "Workspace",
 93    "bindings": {
 94      "ctrl-k ctrl-b": "workspace::ToggleLeftDock",
 95      "ctrl-alt-m": "diagnostics::Deploy", // lsp_show_diagnostics_panel
 96      // "ctrl-0": "project_panel::ToggleFocus", // normally resets zoom
 97      "shift-ctrl-r": "project_symbols::Toggle"
 98    }
 99  }
100]