1[
2 {
3 "bindings": {
4 "ctrl-alt-s": "zed::OpenSettings",
5 "ctrl-{": "pane::ActivatePreviousItem",
6 "ctrl-}": "pane::ActivateNextItem",
7 "ctrl-f2": "debugger::Stop",
8 "f6": "debugger::Pause",
9 "f7": "debugger::StepInto",
10 "f8": "debugger::StepOver",
11 "shift-f8": "debugger::StepOut",
12 "f9": "debugger::Continue",
13 "alt-shift-f9": "debugger::Start"
14 }
15 },
16 {
17 "context": "Editor",
18 "bindings": {
19 "ctrl->": ["zed::IncreaseBufferFontSize", { "persist": true }],
20 "ctrl-<": ["zed::DecreaseBufferFontSize", { "persist": true }],
21 "ctrl-shift-j": "editor::JoinLines",
22 "ctrl-d": "editor::DuplicateSelection",
23 "ctrl-y": "editor::DeleteLine",
24 "ctrl-m": "editor::ScrollCursorCenter",
25 "ctrl-pagedown": "editor::MovePageDown",
26 "ctrl-pageup": "editor::MovePageUp",
27 // "ctrl-alt-shift-b": "editor::SelectToPreviousWordStart",
28 "ctrl-alt-enter": "editor::NewlineAbove",
29 "shift-enter": "editor::NewlineBelow",
30 // "ctrl--": "editor::Fold", // TODO: `ctrl-numpad--` (numpad not implemented)
31 // "ctrl-+": "editor::UnfoldLines", // TODO: `ctrl-numpad+` (numpad not implemented)
32 "alt-shift-g": "editor::SplitSelectionIntoLines",
33 "alt-j": ["editor::SelectNext", { "replace_newest": false }],
34 "alt-shift-j": ["editor::SelectPrevious", { "replace_newest": false }],
35 "ctrl-/": ["editor::ToggleComments", { "advance_downwards": true }],
36 "ctrl-w": "editor::SelectLargerSyntaxNode",
37 "ctrl-shift-w": "editor::SelectSmallerSyntaxNode",
38 "shift-alt-up": "editor::MoveLineUp",
39 "shift-alt-down": "editor::MoveLineDown",
40 "ctrl-alt-l": "editor::Format",
41 "ctrl-alt-o": "editor::OrganizeImports",
42 "shift-f6": "editor::Rename",
43 "ctrl-alt-left": "pane::GoBack",
44 "ctrl-alt-right": "pane::GoForward",
45 "alt-f7": "editor::FindAllReferences",
46 "ctrl-alt-f7": "editor::FindAllReferences",
47 // "ctrl-b": "editor::GoToDefinition", // Conflicts with workspace::ToggleLeftDock
48 // "ctrl-alt-b": "editor::GoToDefinitionSplit", // Conflicts with workspace::ToggleLeftDock
49 "ctrl-shift-b": "editor::GoToTypeDefinition",
50 "ctrl-alt-shift-b": "editor::GoToTypeDefinitionSplit",
51 "f2": "editor::GoToDiagnostic",
52 "shift-f2": "editor::GoToPreviousDiagnostic",
53 "ctrl-alt-shift-down": "editor::GoToHunk",
54 "ctrl-alt-shift-up": "editor::GoToPreviousHunk",
55 "ctrl-alt-z": "git::Restore",
56 "ctrl-home": "editor::MoveToBeginning",
57 "ctrl-end": "editor::MoveToEnd",
58 "ctrl-shift-home": "editor::SelectToBeginning",
59 "ctrl-shift-end": "editor::SelectToEnd",
60 "ctrl-f8": "editor::ToggleBreakpoint",
61 "ctrl-shift-f8": "editor::EditLogBreakpoint"
62 }
63 },
64 {
65 "context": "Editor && mode == full",
66 "bindings": {
67 "ctrl-f12": "outline::Toggle",
68 "alt-7": "outline::Toggle",
69 "ctrl-shift-n": "file_finder::Toggle",
70 "ctrl-g": "go_to_line::Toggle",
71 "alt-enter": "editor::ToggleCodeActions"
72 }
73 },
74 {
75 "context": "Workspace",
76 "bindings": {
77 "ctrl-shift-n": "file_finder::Toggle",
78 "ctrl-shift-a": "command_palette::Toggle",
79 "shift shift": "command_palette::Toggle",
80 "ctrl-alt-shift-n": "project_symbols::Toggle",
81 "alt-1": "workspace::ToggleLeftDock",
82 "ctrl-e": "tab_switcher::Toggle",
83 "alt-6": "diagnostics::Deploy"
84 }
85 },
86 {
87 "context": "Pane",
88 "bindings": {
89 "ctrl-alt-left": "pane::GoBack",
90 "ctrl-alt-right": "pane::GoForward"
91 }
92 },
93 {
94 "context": "ProjectPanel",
95 "bindings": {
96 "enter": "project_panel::Open",
97 "backspace": ["project_panel::Trash", { "skip_prompt": false }],
98 "delete": ["project_panel::Trash", { "skip_prompt": false }],
99 "shift-delete": ["project_panel::Delete", { "skip_prompt": false }],
100 "shift-f6": "project_panel::Rename"
101 }
102 }
103]