-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzed-keymap.json
53 lines (53 loc) · 1.41 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
// Zed keymap
//
// For information on binding keys, see the Zed
// documentation: https://zed.dev/docs/key-bindings
//
// To see the default key bindings run `zed: open default keymap`
// from the command palette.
[
{
"context": "Workspace",
"bindings": {
"shift shift": "file_finder::Toggle",
"cmd-t": "terminal_panel::ToggleFocus",
"shift-escape": null
}
},
{
"context": "Editor",
"bindings": {
// "j k": ["workspace::SendKeystrokes", "escape"]
"cmd-left": "pane::ActivatePrevItem",
"cmd-right": "pane::ActivateNextItem",
"shift-escape": null
}
},
{
"context": "Terminal",
"bindings": {
"cmd-t": "workspace::ToggleBottomDock",
"cmd-n": "workspace::NewTerminal",
"shift-escape": "workspace::ToggleBottomDock"
}
},
{
"context": "VimControl && !menu",
"bindings": {
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-l": ["workspace::ActivatePaneInDirection", "Right"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-j": ["workspace::ActivatePaneInDirection", "Down"],
"space h": ["vim::MoveToNext", { "partialWord": true }]
}
},
{
"context": "vim_mode == normal",
"bindings": {
"f2": "editor::GoToDiagnostic",
"shift-f2": "editor::GoToPrevDiagnostic",
"f3": "editor::GoToHunk",
"shift-f3": "editor::GoToPrevHunk"
}
}
]