1[
2 {
3 "bindings": {
4 "cmd-shift-[": "pane::ActivatePrevItem",
5 "cmd-shift-]": "pane::ActivateNextItem"
6 }
7 },
8 {
9 "context": "Editor",
10 "bindings": {
11 "ctrl->": "zed::IncreaseBufferFontSize",
12 "ctrl-<": "zed::DecreaseBufferFontSize",
13 "ctrl-shift-j": "editor::JoinLines",
14 "cmd-d": "editor::DuplicateLine",
15 "cmd-backspace": "editor::DeleteLine",
16 "cmd-pagedown": "editor::MovePageDown",
17 "cmd-pageup": "editor::MovePageUp",
18 "ctrl-alt-shift-b": "editor::SelectToPreviousWordStart",
19 "cmd-alt-enter": "editor::NewlineAbove",
20 "shift-enter": "editor::NewlineBelow",
21 "cmd--": "editor::Fold",
22 "cmd-+": "editor::UnfoldLines",
23 "alt-shift-g": "editor::SplitSelectionIntoLines",
24 "ctrl-g": [
25 "editor::SelectNext",
26 {
27 "replace_newest": false
28 }
29 ],
30 "ctrl-cmd-g": [
31 "editor::SelectPrevious",
32 {
33 "replace_newest": false
34 }
35 ],
36 "cmd-/": [
37 "editor::ToggleComments",
38 {
39 "advance_downwards": true
40 }
41 ],
42 "shift-alt-up": "editor::MoveLineUp",
43 "shift-alt-down": "editor::MoveLineDown",
44 "cmd-alt-l": "editor::Format",
45 "shift-f6": "editor::Rename",
46 "cmd-[": "pane::GoBack",
47 "cmd-]": "pane::GoForward",
48 "alt-f7": "editor::FindAllReferences",
49 "cmd-alt-f7": "editor::FindAllReferences",
50 "cmd-b": "editor::GoToDefinition",
51 "cmd-alt-b": "editor::GoToDefinitionSplit",
52 "cmd-shift-b": "editor::GoToTypeDefinition",
53 "cmd-alt-shift-b": "editor::GoToTypeDefinitionSplit",
54 "alt-enter": "editor::ToggleCodeActions",
55 "f2": "editor::GoToDiagnostic",
56 "cmd-f2": "editor::GoToPrevDiagnostic",
57 "ctrl-alt-shift-down": "editor::GoToHunk",
58 "ctrl-alt-shift-up": "editor::GoToPrevHunk",
59 "cmd-home": "editor::MoveToBeginning",
60 "cmd-end": "editor::MoveToEnd",
61 "cmd-shift-home": "editor::SelectToBeginning",
62 "cmd-shift-end": "editor::SelectToEnd"
63 }
64 },
65 {
66 "context": "Editor && mode == full",
67 "bindings": {
68 "cmd-f12": "outline::Toggle",
69 "cmd-7": "outline::Toggle",
70 "cmd-shift-o": "file_finder::Toggle",
71 "cmd-l": "go_to_line::Toggle"
72 }
73 },
74 {
75 "context": "Workspace",
76 "bindings": {
77 "cmd-shift-o": "file_finder::Toggle",
78 "cmd-shift-a": "command_palette::Toggle",
79 "cmd-alt-o": "project_symbols::Toggle",
80 "cmd-1": "workspace::ToggleLeftDock",
81 "cmd-6": "diagnostics::Deploy"
82 }
83 },
84 {
85 "context": "Pane",
86 "bindings": {
87 "cmd-alt-left": "pane::GoBack",
88 "cmd-alt-right": "pane::GoForward"
89 }
90 },
91 {
92 "context": "ProjectPanel",
93 "bindings": {
94 "enter": "project_panel::Open",
95 "shift-f6": "project_panel::Rename"
96 }
97 }
98]