-
Notifications
You must be signed in to change notification settings - Fork 1
/
keymap.toml
96 lines (69 loc) · 2.02 KB
/
keymap.toml
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
"$schema" = "https://yazi-rs.github.io/schemas/keymap.json"
[manager]
prepend_keymap = [
{ on = [ "w" ], exec = 'shell "$SHELL" --block --confirm', desc = "Open shell here" },
{ on = [ "W" ], exec = "tasks_show" },
# Navigation
{ on = [ "u" ], run = "arrow -1" },
{ on = [ "e" ], run = "arrow 1" },
{ on = [ "U" ], run = "arrow -5" },
{ on = [ "E" ], run = "arrow 5" },
{ on = [ "n" ], run = "leave" },
{ on = [ "i" ], run = "plugin --sync smart-enter" },
{ on = [ "N" ], run = "back" },
{ on = [ "I" ], run = "forward" },
{ on = [ "<C-u>" ], run = "seek -5" },
{ on = [ "<C-e>" ], run = "seek 5" },
# Operation
{ on = [ "l" ], run = "link" },
{ on = [ "L" ], run = "link --relative" },
# Find
{ on = [ "-" ], run = "find_arrow" },
{ on = [ "=" ], run = "find_arrow --previous" },
]
[tasks]
prepend_keymap = [
{ on = [ "W" ], run = "close" },
{ on = [ "u" ], run = "arrow -1" },
{ on = [ "e" ], run = "arrow 1" },
]
[select]
prepend_keymap = [
{ on = [ "u" ], run = "arrow -1" },
{ on = [ "e" ], run = "arrow 1" },
{ on = [ "U" ], run = "arrow -5" },
{ on = [ "E" ], run = "arrow 5" },
]
[input]
prepend_keymap = [
# Mode
{ on = [ "k" ], run = "insert" },
{ on = [ "<C-n>" ], run = [ "move -999", "insert" ] },
{ on = [ "<C-i>" ], run = [ "move 999", "insert --append" ] },
# Character-wise movement
{ on = [ "n" ], run = "move -1" },
{ on = [ "i" ], run = "move 1" },
# Word-wise movement
{ on = [ "h" ], run = "forward --end-of-word" },
# Line-wise movement
{ on = [ "N" ], run = "move -999" },
{ on = [ "I" ], run = "move 999" },
# Cut/Yank/Paste
{ on = [ "x" ], run = [ "delete", "move 1 --in-operating" ] },
# Undo/Redo
{ on = [ "l" ], run = "undo" },
{ on = [ "L" ], run = "redo" },
]
[completion]
prepend_keymap = [
{ on = [ "<C-u>" ], run = "arrow -1" },
{ on = [ "<C-e>" ], run = "arrow 1" },
]
[help]
prepend_keymap = [
# Navigation
{ on = [ "u" ], run = "arrow -1" },
{ on = [ "e" ], run = "arrow 1" },
{ on = [ "U" ], run = "arrow -5" },
{ on = [ "E" ], run = "arrow 5" },
]