-
Notifications
You must be signed in to change notification settings - Fork 1
/
zed-keymap.json
133 lines (133 loc) · 4.11 KB
/
zed-keymap.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[
{
"context": "Workspace",
"bindings": {
"ctrl-b o": "projects::OpenRecent"
}
},
{
"context": "Editor && mode == single_line",
"bindings": {
"ctrl-j": ["workspace::SendKeystrokes", "down"],
"ctrl-k": ["workspace::SendKeystrokes", "up"]
}
},
{
"context": "EmptyPane || SharedScreen || (Editor && vim_mode == normal)",
"bindings": {
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-j": ["workspace::ActivatePaneInDirection", "Down"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-l": ["workspace::ActivatePaneInDirection", "Right"],
"space k": "editor::Hover",
"g y": "editor::GoToTypeDefinition",
"g r": "editor::FindAllReferences",
"g i": "editor::GoToImplementation",
"g a": "pane::AlternateFile",
"g m": "pane::AlternateFile",
"g n": "pane::ActivateNextItem",
"g p": "pane::ActivatePrevItem",
"m m": "vim::Matching",
"space f": "file_finder::Toggle",
"space s": "project_symbols::Toggle",
"space c": "vim::ToggleComments",
"space d": ["workspace::SendKeystrokes", "shift-cmd-m"],
"space /": "workspace::NewSearch",
"space r": "editor::Rename",
"space x": "editor::ToggleCodeActions",
"space q": "pane::CloseAllItems",
"cmd-t": "terminal_panel::ToggleFocus",
"space `": "editor::Format",
"[ j": "pane::GoBack",
"] j": "pane::GoForward",
"] d": "editor::GoToDiagnostic",
"[ d": "editor::GoToPrevDiagnostic",
"[ space": ["workspace::SendKeystrokes", "cmd-shift-enter"],
"] space": ["workspace::SendKeystrokes", "cmd-enter"],
"-": "pane::RevealInProjectPanel"
}
},
{
"context": "Editor && mode == full && VimControl && vim_mode == normal",
"bindings": {
"enter": "editor::OpenExcerpts"
}
},
{
"context": "Editor && vim_mode == visual",
"bindings": {
"space c": "vim::ToggleComments"
}
},
{
"context": "AssistantPanel",
"bindings": {
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-j": ["workspace::ActivatePaneInDirection", "Down"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-l": ["workspace::ActivatePaneInDirection", "Right"]
}
},
{
"context": "Editor && vim_mode == insert && !inline_completion",
"bindings": {
"ctrl-l": "editor::ShowInlineCompletion"
}
},
{
"context": "Editor && vim_mode == insert && inline_completion",
"bindings": {
"ctrl-j": "editor::NextInlineCompletion",
"ctrl-k": "editor::PreviousInlineCompletion",
"ctrl-l": "editor::AcceptInlineCompletion"
}
},
{
"context": "Editor && showing_completions",
"bindings": {
"ctrl-j": "editor::ContextMenuNext",
"ctrl-k": "editor::ContextMenuPrev",
"ctrl-l": "editor::ConfirmCompletion"
}
},
{
"context": "Editor && showing_code_actions",
"bindings": {
"ctrl-j": "editor::ContextMenuNext",
"ctrl-k": "editor::ContextMenuPrev",
"ctrl-l": ["workspace.SendKeystrokes", "Enter"]
}
},
{
"context": "ProjectPanel && not_editing",
"bindings": {
"-": "workspace::ToggleLeftDock",
"ctrl-l": ["workspace::ActivatePaneInDirection", "Right"],
"d d": "project_panel::Cut",
"y y": "project_panel::Copy",
"p": "project_panel::Paste",
"r": "project_panel::Rename"
}
},
{
"context": "Terminal",
"bindings": {
"ctrl-h": "pane::ActivatePrevItem",
"ctrl-l": "pane::ActivateNextItem",
"cmd-t": "workspace::ToggleBottomDock",
"cmd-n": "workspace::NewTerminal",
"ctrl-j": ["workspace::ActivatePaneInDirection", "Down"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"]
}
},
{
"context": "ProjectSearchBar",
"bindings": {
"escape": "pane::CloseActiveItem",
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-j": ["workspace::ActivatePaneInDirection", "Down"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-l": ["workspace::ActivatePaneInDirection", "Right"]
}
}
]