-
Notifications
You must be signed in to change notification settings - Fork 142
/
zed-keymap.json
129 lines (128 loc) · 3.78 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
[
{
"context": "Editor && VimControl && !VimWaiting && !menu",
"bindings": {
// doesn't work, check why
// ", space": "buffer_search::Dismiss",
// put key-bindings here if you want them to work in normal & visual mode
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-l": ["workspace::ActivatePaneInDirection", "Right"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-j": ["workspace::ActivatePaneInDirection", "Down"],
"ctrl-w z": "workspace::ToggleZoom",
"ctrl-w t": "terminal_panel::ToggleFocus",
"g c c": "editor::ToggleComments",
"shift-k": "editor::Hover",
"g shift-r": "editor::FindAllReferences",
"g a": "editor::ToggleCodeActions",
"ctrl-g": "outline::Toggle",
"ctrl-shift-g": "go_to_line::Toggle",
", g b": "editor::ToggleGitBlame",
"ctrl-p": "file_finder::Toggle",
"j": [
"vim::Down",
{
"displayLines": true
}
],
"k": [
"vim::Up",
{
"displayLines": true
}
],
"space": "editor::SelectLargerSyntaxNode",
"backspace": "editor::SelectSmallerSyntaxNode",
// filetree
", n": "workspace::ToggleLeftDock"
}
},
{
"context": "Editor && vim_mode == normal && !VimWaiting && !menu",
"bindings": {
// put key-bindings here if you want them to work only in normal mode
", v": "editor::GoToDefinitionSplit",
"g r": "editor::FindAllReferences",
"ctrl-n": "editor::GoToDiagnostic",
"ctrl-m": "editor::GoToPrevDiagnostic"
}
},
{
"context": "Editor && vim_mode == normal && (vim_operator == none || vim_operator == n) && !VimWaiting",
"bindings": {
", w": "workspace::Save",
", q": "pane::CloseActiveItem"
}
},
{
"context": "Editor && showing_completions",
"bindings": {
"enter": "editor::ConfirmCompletion",
"shift-tab": "editor::ContextMenuPrev",
"tab": "editor::ContextMenuNext",
"g g": "editor::ContextMenuFirst",
"shift-G": "editor::ContextMenuLast"
}
},
{
"context": "Editor && mode == full && inline_completion",
"bindings": {
"tab": "editor::NextInlineCompletion",
"shift-tab": "editor::PreviousInlineCompletion",
"enter": "editor::AcceptPartialInlineCompletion"
}
},
{
"context": "Editor && vim_mode == insert && !menu",
"bindings": {
// put key-bindings here if you want them to work in insert mode
"j j": "vim::NormalBefore",
"j k": "vim::NormalBefore",
"tab": "menu::SelectNext",
"shift-tab": "menu::SelectPrev"
}
},
{
"context": "Pane",
"bindings": {
"cmd-1": ["pane::ActivateItem", 0],
"cmd-2": ["pane::ActivateItem", 1],
"cmd-3": ["pane::ActivateItem", 2],
"cmd-4": ["pane::ActivateItem", 3],
"cmd-5": ["pane::ActivateItem", 4],
"cmd-6": ["pane::ActivateItem", 5],
"cmd-7": ["pane::ActivateItem", 6],
"cmd-8": ["pane::ActivateItem", 7],
"cmd-9": ["pane::ActivateItem", 8]
}
},
{
"context": "BufferSearchBar && !in_replace",
"bindings": {
", space": "buffer_search::Dismiss"
}
},
{
"context": "Terminal",
"bindings": {
"ctrl-w t": "workspace::ToggleZoom",
"ctrl-u": "terminal::Clear"
}
},
{
"context": "Dock",
"bindings": {
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-l": ["workspace::ActivatePaneInDirection", "Right"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-j": ["workspace::ActivatePaneInDirection", "Down"]
}
},
{
"context": "Workspace",
"bindings": {
", b": ["task::Spawn", { "task_name": "Go Build" }],
", a": ["task::Spawn", { "task_name": "Go Alternative" }]
}
}
]