1[
2 {
3 "bindings": {
4 "cmd-{": "pane::ActivatePreviousItem",
5 "cmd-}": "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-shift-up": ["editor::AddSelectionAbove", { "skip_soft_wrap": false }],
32 "ctrl-shift-down": ["editor::AddSelectionBelow", { "skip_soft_wrap": false }],
33 "cmd-ctrl-up": "editor::MoveLineUp",
34 "cmd-ctrl-down": "editor::MoveLineDown",
35 "cmd-shift-space": "editor::SelectAll",
36 "ctrl-shift-m": "editor::SelectLargerSyntaxNode",
37 "cmd-shift-l": "editor::SplitSelectionIntoLines",
38 "cmd-shift-a": "editor::SelectLargerSyntaxNode",
39 "cmd-shift-d": "editor::DuplicateSelection",
40 "ctrl-cmd-g": "editor::SelectAllMatches", // find_all_under
41 // "cmd-alt-g": "", // find_under (cancels any selections)
42 // "cmd-alt-shift-g": "" // find_under_prev (cancels any selections)
43 "f5": "editor::SortLinesCaseSensitive",
44 "ctrl-f5": "editor::SortLinesCaseInsensitive",
45 "shift-f12": "editor::FindAllReferences",
46 "alt-cmd-down": "editor::GoToDefinition",
47 "ctrl-alt-cmd-down": "editor::GoToDefinitionSplit",
48 "alt-shift-cmd-down": "editor::FindAllReferences",
49 "ctrl-.": "editor::GoToHunk",
50 "ctrl-,": "editor::GoToPreviousHunk",
51 "cmd-k cmd-u": "editor::ConvertToUpperCase",
52 "cmd-k cmd-l": "editor::ConvertToLowerCase",
53 "cmd-shift-j": "editor::JoinLines",
54 "shift-alt-m": "markdown::OpenPreviewToTheSide",
55 "ctrl-backspace": ["editor::DeleteToPreviousWordStart", { "ignore_newlines": false, "ignore_brackets": false }],
56 "ctrl-delete": ["editor::DeleteToNextWordEnd", { "ignore_newlines": false, "ignore_brackets": false }],
57 "ctrl-right": "editor::MoveToNextSubwordEnd",
58 "ctrl-left": "editor::MoveToPreviousSubwordStart",
59 "ctrl-shift-right": "editor::SelectToNextSubwordEnd",
60 "ctrl-shift-left": "editor::SelectToPreviousSubwordStart"
61 }
62 },
63 {
64 "context": "Editor && mode == full",
65 "bindings": {
66 "cmd-r": "outline::Toggle"
67 }
68 },
69 {
70 "context": "Editor && !agent_diff",
71 "bindings": {
72 "cmd-k cmd-z": "git::Restore"
73 }
74 },
75 {
76 "context": "Pane",
77 "bindings": {
78 "f4": "search::SelectNextMatch",
79 "shift-f4": "search::SelectPreviousMatch",
80 "cmd-1": ["pane::ActivateItem", 0],
81 "cmd-2": ["pane::ActivateItem", 1],
82 "cmd-3": ["pane::ActivateItem", 2],
83 "cmd-4": ["pane::ActivateItem", 3],
84 "cmd-5": ["pane::ActivateItem", 4],
85 "cmd-6": ["pane::ActivateItem", 5],
86 "cmd-7": ["pane::ActivateItem", 6],
87 "cmd-8": ["pane::ActivateItem", 7],
88 "cmd-9": "pane::ActivateLastItem"
89 }
90 },
91 {
92 "context": "Workspace",
93 "bindings": {
94 "cmd-k cmd-b": "workspace::ToggleLeftDock",
95 "cmd-t": "file_finder::Toggle",
96 "shift-cmd-r": "project_symbols::Toggle",
97 // Currently busted: https://github.com/zed-industries/feedback/issues/898
98 "ctrl-0": "project_panel::ToggleFocus"
99 }
100 }
101]