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
|
// 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": {
"\\ f f": "file_finder::Toggle",
"\\ f g": "workspace::NewSearch",
"\\ f b": "tab_switcher::Toggle",
"\\ f e": "project_panel::ToggleFocus",
},
},
{
"context": "Editor && vim_mode == normal",
"bindings": {
"\\ d": "editor::Delete",
"g d": "editor::GoToDefinition",
"g D": "editor::GoToDeclaration",
"g r": "editor::FindAllReferences",
"g i": "editor::GoToImplementation",
"k": "editor::Hover",
"ctrl-k": "editor::ShowSignatureHelp",
"\\ c a": "editor::ToggleCodeActions",
"\\ r n": "editor::Rename",
"\\ f m": "editor::Format",
"\\ w": "workspace::Save",
},
},
{
"context": "Editor && vim_mode == visual",
"bindings": {
"J": "editor::MoveLineDown",
"K": "editor::MoveLineUp",
},
},
]
|