-
Notifications
You must be signed in to change notification settings - Fork 2
/
keymap.json
100 lines (100 loc) · 3 KB
/
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
// 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.
[
{
"bindings": {
"ctrl-shift-p": "command_palette::Toggle",
"ctrl-shift-k": "zed::OpenKeymap",
"ctrl-shift-x": "zed::Extensions",
"f11": "zed::ToggleFullScreen",
"ctrl-alt-n": "task::Spawn",
"ctrl-alt-r": "task::Rerun",
"ctrl-alt-o": "zed::OpenLocalTasks",
"ctrl-\\": "workspace::NewCenterTerminal",
"ctrl-t": "terminal_panel::ToggleFocus"
}
},
{
"context": "Workspace",
"bindings": {
"shift shift": "workspace::NewSearch"
}
},
{
"context": "Editor",
"bindings": {
"ctrl-a": "editor::SelectAll",
"ctrl-w": "pane::CloseActiveItem",
"alt-enter": "editor::ToggleCodeActions"
}
},
{
"context": "Editor && VimControl && !VimWaiting && !menu",
"bindings": {
"H": "pane::ActivatePrevItem",
"L": "pane::ActivateNextItem",
"K": "editor::Hover",
"g h": "editor::MoveToBeginningOfLine",
"g l": "editor::MoveToEndOfLine",
"g b": "pane::GoBack",
"g r": "editor::GoToTypeDefinition",
"g i": "editor::GoToImplementation",
"space c f": "editor::Format",
"space c r": "editor::Rename",
"space e": "project_panel::ToggleFocus",
"space f o": "outline::Toggle",
"space f p": "projects::OpenRecent",
"space f q": "file_finder::Toggle",
"space g [": "editor::GoToPrevHunk",
"space g ]": "editor::GoToHunk",
"space g b": "editor::ToggleGitBlame",
"space g d": "editor::ToggleHunkDiff",
"space g r": "editor::RevertSelectedHunks",
"space m o": "markdown::OpenPreview",
"space m p": "markdown::OpenPreviewToTheSide",
"space o": "tab_switcher::Toggle",
"space p d": "diagnostics::Deploy",
"space w c": "pane::CloseAllItems",
"space w k": "pane::SplitUp",
"space w j": "pane::SplitDown",
"space w h": "pane::SplitLeft",
"space w l": "pane::SplitRight"
}
},
{
"context": "ProjectPanel && not_editing",
"bindings": {
"j": "menu::SelectNext",
"k": "menu::SelectPrev",
"a": "project_panel::NewFile",
"A": "project_panel::NewDirectory",
"c": "project_panel::Copy",
"d": "project_panel::Delete",
"p": "project_panel::Paste",
"r": "project_panel::Rename",
"x": "project_panel::Cut",
"y p": "project_panel::CopyPath",
"y r": "project_panel::CopyRelativePath"
}
},
{
"context": "Dock || Terminal || Editor",
"bindings": {
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-l": ["workspace::ActivatePaneInDirection", "Right"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-j": ["workspace::ActivatePaneInDirection", "Down"]
}
},
{
"context": "Terminal",
"bindings": {
"ctrl-t": "workspace::ToggleBottomDock"
}
}
]