-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeymap.json
75 lines (74 loc) · 1.95 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
// 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": "vim_mode == insert",
"bindings": {
"j k": "vim::NormalBefore", // remap jk in insert mode to escape.
"k k": "vim::InsertLineAbove"
}
},
{
"context": "Workspace",
"bindings": {
"ctrl-`": "workspace::ToggleBottomDock",
"cmd-j": "pane::ActivatePrevItem",
"cmd-k": "pane::ActivateNextItem",
"g d": "editor::GoToDefinition",
"cmd-shift-n": "workspace::NewFile"
}
},
{
"context": "BufferSearchBar && !in_replace > Editor",
"bindings": {
"enter": "search::SelectNextMatch",
"shift-enter": "search::SelectPrevMatch"
}
},
{
"context": "AssistantPanel",
"bindings": {
"cmd-n": "search::SelectNextMatch",
"cmd-p": "search::SelectPrevMatch",
"alt-m": "assistant::ToggleModelSelector"
}
},
{
"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],
"cmd-0": "pane::ActivateLastItem",
"ctrl--": "pane::GoBack",
"ctrl-shift--": "pane::GoForward",
"cmd-shift-t": "pane::ReopenClosedItem",
"cmd-shift-f": "project_search::ToggleFocus"
}
},
{
"context": "ProjectSearchBar",
"bindings": {
"cmd-n": "search::PreviousHistoryQuery",
"cmd-p": "search::NextHistoryQuery"
}
},
{
"context": "Editor && mode == full",
"bindings": {
"cmd-shift-o": "outline::Toggle",
"cmd-g": "go_to_line::Toggle"
}
}
]