-
Notifications
You must be signed in to change notification settings - Fork 0
/
keymap.toml
198 lines (166 loc) · 8.26 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
[default_view]
keymap = [
{ keys = ["escape"], commands = ["escape"] },
{ keys = ["ctrl+t"], commands = ["new_tab"] },
{ keys = ["alt+t"], commands = ["new_tab --cursor"] },
{ keys = ["T"], commands = ["new_tab --current"] },
{ keys = ["W"], commands = ["close_tab"] },
{ keys = ["ctrl+w"], commands = ["close_tab"] },
{ keys = ["q"], commands = ["close_tab"] },
{ keys = ["ctrl+c"], commands = ["quit"] },
{ keys = ["Q"], commands = ["quit --output-current-directory"] },
{ keys = ["R"], commands = ["reload_dirlist"] },
# { keys = ["z", "h"], commands = ["toggle_hidden"] },
{ keys = ["H"], commands = ["toggle_hidden"] },
# { keys = ["ctrl+h"], commands = ["toggle_hidden"] },
{ keys = ["\t"], commands = ["tab_switch 1"] },
{ keys = ["backtab"], commands = ["tab_switch -1"] },
{ keys = ["ctrl+h"], commands = ["tab_switch -1"] },
{ keys = ["ctrl+l"], commands = ["tab_switch 1"] },
{ keys = ["alt+1"], commands = ["tab_switch_index 1"] },
{ keys = ["alt+2"], commands = ["tab_switch_index 2"] },
{ keys = ["alt+3"], commands = ["tab_switch_index 3"] },
{ keys = ["alt+4"], commands = ["tab_switch_index 4"] },
{ keys = ["alt+5"], commands = ["tab_switch_index 5"] },
{ keys = ["1"], commands = ["numbered_command 1"] },
{ keys = ["2"], commands = ["numbered_command 2"] },
{ keys = ["3"], commands = ["numbered_command 3"] },
{ keys = ["4"], commands = ["numbered_command 4"] },
{ keys = ["5"], commands = ["numbered_command 5"] },
{ keys = ["6"], commands = ["numbered_command 6"] },
{ keys = ["7"], commands = ["numbered_command 7"] },
{ keys = ["8"], commands = ["numbered_command 8"] },
{ keys = ["9"], commands = ["numbered_command 9"] },
# arrow keys
# { keys = ["arrow_up"], commands = ["cursor_move_up"] },
# { keys = ["arrow_down"], commands = ["cursor_move_down"] },
# { keys = ["arrow_left"], commands = ["cd .."] },
# { keys = ["arrow_right"], commands = ["open"] },
{ keys = ["\n"], commands = ["open"] },
{ keys = ["home"], commands = ["cursor_move_home"] },
{ keys = ["end"], commands = ["cursor_move_end"] },
{ keys = ["page_up"], commands = ["cursor_move_page_up"] },
{ keys = ["page_down"], commands = ["cursor_move_page_down"] },
{ keys = ["ctrl+u"], commands = ["cursor_move_page_up 0.5"] },
{ keys = ["ctrl+d"], commands = ["cursor_move_page_down 0.5"] },
{ keys = ["ctrl+b"], commands = ["cursor_move_page_up"] },
{ keys = ["ctrl+f"], commands = ["cursor_move_page_down"] },
# vim-like keybindings
{ keys = ["j"], commands = ["cursor_move_down"] },
{ keys = ["k"], commands = ["cursor_move_up"] },
{ keys = ["J"], commands = ["cursor_move_down 5"] },
{ keys = ["K"], commands = ["cursor_move_up 5"] },
{ keys = ["h"], commands = ["cd .."] },
{ keys = ["l"], commands = ["open"] },
{ keys = ["g", "g"], commands = ["cursor_move_home"] },
{ keys = ["G"], commands = ["cursor_move_end"] },
# { keys = ["r"], commands = ["open_with"] },
{ keys = ["o"], commands = ["open_with"] },
# { keys = ["H"], commands = ["cursor_move_page_home"] },
# { keys = ["L"], commands = ["cursor_move_page_middle"] },
# { keys = ["M"], commands = ["cursor_move_page_end"] },
{ keys = ["["], commands = ["parent_cursor_move_up"] },
{ keys = ["]"], commands = ["parent_cursor_move_down"] },
{ keys = ["alt+k"], commands = ["preview_cursor_move_up"] },
{ keys = ["alt+j"], commands = ["preview_cursor_move_down"] },
{ keys = ["alt+K"], commands = ["preview_cursor_move_up 10"] },
{ keys = ["alt+J"], commands = ["preview_cursor_move_down 10"] },
{ keys = ["c", "d"], commands = [":cd "] },
{ keys = ["d", "d"], commands = ["cut_files"] },
{ keys = ["y", "y"], commands = ["copy_files"] },
{ keys = ["y", "n"], commands = ["copy_filename"] },
{ keys = ["y", "."], commands = ["copy_filename_without_extension"] },
{ keys = ["y", "p"], commands = ["copy_filepath"] },
{ keys = ["y", "a"], commands = ["copy_filepath --all-selected=true"] },
{ keys = ["y", "d"], commands = ["copy_dirpath"] },
{ keys = ["p", "l"], commands = ["symlink_files --relative=false"] },
{ keys = ["p", "L"], commands = ["symlink_files --relative=true"] },
{ keys = ["delete"], commands = ["delete_files"] },
{ keys = ["d", "D"], commands = ["delete_files"] },
{ keys = ["p", "p"], commands = ["paste_files"] },
{ keys = ["p", "o"], commands = ["paste_files --overwrite=true"] },
# { keys = ["a"], commands = ["rename_append"] },
# { keys = ["A"], commands = ["rename_prepend"] },
# { keys = ["f", "t"], commands = [":touch "] },
{ keys = ["a"], commands = [":touch "] },
{ keys = [" "], commands = ["select --toggle=true"] },
{ keys = ["t"], commands = ["select --all=true --toggle=true"] },
{ keys = ["V"], commands = ["toggle_visual"] },
{ keys = ["w"], commands = ["show_tasks --exit-key=w"] },
{ keys = ["b", "b"], commands = ["bulk_rename"] },
{ keys = ["r", "m"], commands = ["set_mode"] },
{ keys = ["r", "r"], commands = [":rename "] },
{ keys = ["r", "n"], commands = ["rename_keep_ext"] },
{ keys = ["r", "a"], commands = ["rename_append"] },
{ keys = ["r", "p"], commands = ["rename_prepend"] },
{ keys = [":"], commands = [":"] },
{ keys = [";"], commands = [":"] },
{ keys = ["m", "d"], commands = [":mkdir "] },
{ keys = ["'"], commands = [":shell "] },
{ keys = ["ctrl+g"], commands = [":shell lazygit\n"] },
# { keys = ["/"], commands = [":search "] },
# { keys = ["|"], commands = [":search_inc "] },
{ keys = ["/"], commands = [":search_inc "] },
{ keys = ["\\"], commands = [":search_glob "] },
# { keys = ["S"], commands = ["search_fzf"] },
# { keys = ["C"], commands = ["subdir_fzf"] },
{ keys = ["f"], commands = [":filter "] },
{ keys = ["F"], commands = ["subdir_fzf"] },
{ keys = ["z"], commands = ["zi"] },
{ keys = ["n"], commands = ["search_next"] },
{ keys = ["N"], commands = ["search_prev"] },
{ keys = ["s", "r"], commands = ["sort reverse"] },
{ keys = ["s", "l"], commands = ["sort lexical"] },
{ keys = ["s", "m"], commands = ["sort mtime"] },
{ keys = ["s", "n"], commands = ["sort natural"] },
{ keys = ["s", "s"], commands = ["sort size"] },
{ keys = ["s", "e"], commands = ["sort ext"] },
{ keys = ["m", "s"], commands = ["linemode size"] },
{ keys = ["m", "m"], commands = ["linemode mtime"] },
{ keys = ["m", "M"], commands = ["linemode size | mtime"] },
{ keys = ["m", "u"], commands = ["linemode user"] },
{ keys = ["m", "U"], commands = ["linemode user | group"] },
{ keys = ["m", "p"], commands = ["linemode perm"] },
{ keys = ["g", "r"], commands = ["cd /"] },
{ keys = ["g", "c"], commands = ["cd ~/.config"] },
{ keys = ["g", "d"], commands = ["cd ~/Downloads"] },
{ keys = ["g", "e"], commands = ["cd /etc"] },
{ keys = ["g", "h"], commands = ["cd ~/"] },
{ keys = ["g", "n"], commands = ["cd ~/.config/nvim"] },
{ keys = ["g", "s"], commands = ["cd ~/.config/nushell"] },
{ keys = ["g", "j"], commands = ["cd ~/.config/joshuto"] },
{ keys = ["?"], commands = ["help"] },
]
[task_view]
keymap = [
# arrow keys
{ keys = ["arrow_up"], commands = ["cursor_move_up"] },
{ keys = ["arrow_down"], commands = ["cursor_move_down"] },
{ keys = ["home"], commands = ["cursor_move_home"] },
{ keys = ["end"], commands = ["cursor_move_end"] },
# vim-like keybindings
{ keys = ["j"], commands = ["cursor_move_down"] },
{ keys = ["k"], commands = ["cursor_move_up"] },
{ keys = ["g", "g"], commands = ["cursor_move_home"] },
{ keys = ["G"], commands = ["cursor_move_end"] },
{ keys = ["w"], commands = ["show_tasks"] },
{ keys = ["escape"], commands = ["show_tasks"] },
]
[help_view]
keymap = [
# arrow keys
{ keys = ["arrow_up"], commands = ["cursor_move_up"] },
{ keys = ["arrow_down"], commands = ["cursor_move_down"] },
{ keys = ["home"], commands = ["cursor_move_home"] },
{ keys = ["end"], commands = ["cursor_move_end"] },
# vim-like keybindings
{ keys = ["j"], commands = ["cursor_move_down"] },
{ keys = ["k"], commands = ["cursor_move_up"] },
{ keys = ["J"], commands = ["cursor_move_down 5"] },
{ keys = ["K"], commands = ["cursor_move_up 5"] },
{ keys = ["g", "g"], commands = ["cursor_move_home"] },
{ keys = ["G"], commands = ["cursor_move_end"] },
{ keys = ["w"], commands = ["show_tasks"] },
{ keys = ["escape"], commands = ["show_tasks"] },
{ keys = ["q"], commands = ["show_tasks"] },
]