-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathkeymap.json
More file actions
117 lines (107 loc) · 3.59 KB
/
keymap.json
File metadata and controls
117 lines (107 loc) · 3.59 KB
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
// 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"
},
},
{
"context": "(ProjectPanel && not_editing)",
"bindings": {
"i": "project_panel::OpenSplitHorizontal",
"m d": "project_panel::Delete",
"m o": "workspace::OpenWithSystem",
"m r": "project_panel::RevealInFileManager",
"o": "project_panel::OpenPermanent",
"s": "project_panel::OpenSplitVertical",
},
},
{
"context": "Editor && vim_mode == normal && !VimWaiting",
"bindings": {
"ctrl-o": "pane::GoBack",
"ctrl-i": "pane::GoForward",
"ctrl-k": "editor::GoToPreviousDiagnostic",
"ctrl-j": "editor::GoToDiagnostic",
"[ b": "pane::ActivatePreviousItem",
"] b": "pane::ActivateNextItem",
"[ t": "pane::ActivatePreviousItem",
"] t": "pane::ActivateNextItem",
"space 1": ["pane::ActivateItem", 0],
"space 2": ["pane::ActivateItem", 1],
"space 3": ["pane::ActivateItem", 2],
"space 4": ["pane::ActivateItem", 3],
"space 5": ["pane::ActivateItem", 4],
"space 6": ["pane::ActivateItem", 5],
"space 7": ["pane::ActivateItem", 6],
"space 8": ["pane::ActivateItem", 7],
"space 9": ["pane::ActivateItem", 8],
"space -": "pane::ActivatePreviousItem",
"space +": "pane::ActivateNextItem",
"space :": "command_palette::Toggle",
"space =": "editor::Format",
"space b b": "tab_switcher::Toggle",
"space b d": "pane::CloseActiveItem",
"space b h": "git::FileHistory",
"space b o": "pane::CloseOtherItems",
"space b w": "pane::CloseActiveItem",
"space c space": "editor::ToggleComments",
"space c c": "editor::ToggleComments",
"space c u": "editor::ToggleComments",
"space f f": "file_finder::Toggle",
"space f s": "git_panel::Toggle",
"space g b": "git::Blame",
"space g c": "git::Commit",
"space g d": "git::Diff",
"space g f": "git::Fetch",
"space g g": "file_finder::Toggle",
"space g s": "git_panel::Toggle",
"space j d": "editor::GoToDeclaration",
"space j i": "editor::GoToImplementation",
"space j j": "editor::GoToDefinition",
"space j r": "editor::FindAllReferences",
"space j t": "editor::GoToTypeDefinition",
"space n j": "pane::RevealInProjectPanel",
"space n n": "project_panel::ToggleFocus",
"space t n": "workspace::ToggleLeftDock",
"space s a": "workspace::NewSearch",
"space s g": "workspace::NewSearch",
"space s r": "workspace::NewSearch",
"space y f": "workspace::CopyPath",
"space y n": "workspace::CopyRelativePath",
},
},
{
"context": "Editor && vim_mode == visual && !VimWaiting",
"bindings": {
"space =": "editor::Format",
"space c space": "editor::ToggleComments",
"space c c": "editor::ToggleComments",
"space c u": "editor::ToggleComments",
},
},
{
"context": "Editor && vim_mode == insert",
"bindings": {
"ctrl-a": "editor::MoveToBeginningOfLine",
"ctrl-b": "editor::MoveLeft",
"ctrl-d": "editor::Delete",
"ctrl-e": "editor::MoveToEndOfLine",
"ctrl-f": "editor::MoveRight",
"ctrl-k": "editor::DeleteToEndOfLine",
},
},
{
"context": "Editor && extension == md && vim_mode == normal && !VimWaiting",
"bindings": {
"space p m": "markdown::OpenPreview",
},
},
]