summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/fi/fish-mk-maps/default.nix
blob: 566d0398d0850022639aa46b15bd461ae223d53d (plain) (blame)
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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
{
  "operator" = {
    "escape" = { cmd = "fish_vi_operator_cancel"; sets_mode_to = "default";};
    "F" = { cmd = ""; sets_mode_to = "F";};
    "d" = { cmd = "fish_vi_exec_motion --linewise"; sets_mode_to = "default";};
    "e" = { cmd = "fish_vi_exec_motion forward-word-end"; sets_mode_to = "default";};
    "j" = { cmd = "fish_vi_exec_motion down-line"; sets_mode_to = "default";};
    "k" = { cmd = "fish_vi_exec_motion up-line"; sets_mode_to = "default";};
    "7" = { cmd = "fish_vi_arg_digit 7"; sets_mode_to = "default";};
    "h" = { cmd = "fish_vi_exec_motion backward-char"; sets_mode_to = "default";};
    "B" = { cmd = "fish_vi_exec_motion backward-bigword"; sets_mode_to = "default";};
    "9" = { cmd = "fish_vi_arg_digit 9"; sets_mode_to = "default";};
    "5" = { cmd = "fish_vi_arg_digit 5"; sets_mode_to = "default";};
    "E" = { cmd = "fish_vi_exec_motion forward-bigword-end"; sets_mode_to = "default";};
    "~" = { cmd = "fish_vi_exec_motion --linewise"; sets_mode_to = "default";};
    "4" = { cmd = "fish_vi_arg_digit 4"; sets_mode_to = "default";};
    "comma" = { cmd = "fish_vi_exec_motion repeat-jump-reverse"; sets_mode_to = "default";};
    "^" = { cmd = "fish_vi_exec_motion beginning-of-line"; sets_mode_to = "default";};
    "ctrl-[" = { cmd = "fish_vi_operator_cancel"; sets_mode_to = "default";};
    ";" = { cmd = "fish_vi_exec_motion repeat-jump"; sets_mode_to = "default";};
    "c" = { cmd = "fish_vi_exec_motion --linewise"; sets_mode_to = "default";};
    "T" = { cmd = ""; sets_mode_to = "T";};
    "t" = { cmd = ""; sets_mode_to = "t";};
    "2" = { cmd = "fish_vi_arg_digit 2"; sets_mode_to = "default";};
    "W" = { cmd = "fish_vi_exec_motion forward-bigword-vi"; sets_mode_to = "default";};
    "$" = { cmd = "fish_vi_exec_motion end-of-line"; sets_mode_to = "default";};
    "0" = { cmd = "fish_vi_exec_motion beginning-of-line"; sets_mode_to = "default";};
    "8" = { cmd = "fish_vi_arg_digit 8"; sets_mode_to = "default";};
    "g" = {
      "E" = { cmd = "fish_vi_exec_motion backward-bigword-end"; sets_mode_to = "default";};
      "e" = { cmd = "fish_vi_exec_motion backward-word-end"; sets_mode_to = "default";};
    };
    "w" = { cmd = "fish_vi_exec_motion forward-word-vi"; sets_mode_to = "default";};
    "b" = { cmd = "fish_vi_exec_motion backward-word"; sets_mode_to = "default";};
    "6" = { cmd = "fish_vi_arg_digit 6"; sets_mode_to = "default";};
    "y" = { cmd = "fish_vi_exec_motion --linewise"; sets_mode_to = "default";};
    "l" = { cmd = "fish_vi_exec_motion forward-char"; sets_mode_to = "default";};
    "1" = { cmd = "fish_vi_arg_digit 1"; sets_mode_to = "default";};
    "f" = { cmd = ""; sets_mode_to = "f";};
    "3" = { cmd = "fish_vi_arg_digit 3"; sets_mode_to = "default";};
  };
  "T" = {
    "" = { cmd = "get-key fish_vi_exec_motion commandline --backward-jump-till=$fish_key set -eg fish_key"; sets_mode_to = "default";};
  };
  "f" = {
    "" = { cmd = "get-key fish_vi_exec_motion commandline --forward-jump=$fish_key set -eg fish_key"; sets_mode_to = "default";};
  };
  "insert" = {
    "alt-up" = { cmd = "history-token-search-backward"; sets_mode_to = "default";};
    "alt-v" = { cmd = "edit_command_buffer"; sets_mode_to = "default";};
    "pageup" = { cmd = "beginning-of-history"; sets_mode_to = "default";};
    ">" = { cmd = "self-insert expand-abbr"; sets_mode_to = "default";};
    "left" = { cmd = "backward-char"; sets_mode_to = "default";};
    "\e\[1\;9C" = { cmd = "nextd-or-forward-word"; sets_mode_to = "default";};
    "ctrl-k" = { cmd = "kill-line"; sets_mode_to = "default";};
    "&" = { cmd = "self-insert expand-abbr"; sets_mode_to = "default";};
    "shift-delete" = { cmd = "history-delete or backward-delete-char"; sets_mode_to = "default";};
    "alt-l" = { cmd = "__fish_list_current_token"; sets_mode_to = "default";};
    "shift-tab" = { cmd = "complete-and-search"; sets_mode_to = "default";};
    "space" = { cmd = "self-insert expand-abbr"; sets_mode_to = "default";};
    "up" = { cmd = "up-or-search"; sets_mode_to = "default";};
    "alt-#" = { cmd = "__fish_toggle_comment_commandline"; sets_mode_to = "default";};
    "tab" = { cmd = "complete"; sets_mode_to = "default";};
    "alt-h" = { cmd = "__fish_man_page"; sets_mode_to = "default";};
    "\e\[1\;9A" = { cmd = "history-token-search-backward"; sets_mode_to = "default";};
    "ctrl-u" = { cmd = "backward-kill-line"; sets_mode_to = "default";};
    "shift-backspace" = { cmd = "backward-delete-char"; sets_mode_to = "default";};
    "alt-enter" = { cmd = "commandline -i \\n (commandline --search-field >/dev/null && echo --search-field) expand-abbr"; sets_mode_to = "default";};
    "ctrl-w" = { cmd = "backward-kill-path-component"; sets_mode_to = "default";};
    "ctrl-right" = { cmd = "forward-token"; sets_mode_to = "default";};
    "pagedown" = { cmd = "end-of-history"; sets_mode_to = "default";};
    "alt-down" = { cmd = "history-token-search-forward"; sets_mode_to = "default";};
    "down" = { cmd = "down-or-search"; sets_mode_to = "default";};
    "ctrl-n" = { cmd = "accept-autosuggestion"; sets_mode_to = "default";};
    "enter" = { cmd = "execute"; sets_mode_to = "default";};
    "ctrl-m" = { cmd = "execute"; sets_mode_to = "default";};
    "shift-space" = { cmd = "commandline -i " " (commandline --search-field >/dev/null && echo --search-field) expand-abbr"; sets_mode_to = "default";};
    "ctrl-s" = { cmd = "pager-toggle-search"; sets_mode_to = "default";};
    "ctrl-i" = { cmd = "complete"; sets_mode_to = "default";};
    "shift-right" = { cmd = "forward-bigword"; sets_mode_to = "default";};
    "end" = { cmd = "end-of-line"; sets_mode_to = "default";};
    ")" = { cmd = "self-insert expand-abbr"; sets_mode_to = "default";};
    "ctrl-x" = { cmd = "fish_clipboard_copy"; sets_mode_to = "default";};
    "\e\[1\;9D" = { cmd = "prevd-or-backward-word"; sets_mode_to = "default";};
    "alt-e" = { cmd = "edit_command_buffer"; sets_mode_to = "default";};
    "alt-p" = { cmd = "__fish_paginate"; sets_mode_to = "default";};
    "f1" = { cmd = "__fish_man_page"; sets_mode_to = "default";};
    "shift-left" = { cmd = "backward-bigword"; sets_mode_to = "default";};
    "ctrl-l" = { cmd = "status test-terminal-feature scroll-content-up && commandline -f scrollback-push clear-screen"; sets_mode_to = "default";};
    "alt-y" = { cmd = "yank-pop"; sets_mode_to = "default";};
    "<" = { cmd = "self-insert expand-abbr"; sets_mode_to = "default";};
    "alt-w" = { cmd = "__fish_whatis_current_token"; sets_mode_to = "default";};
    "right" = { cmd = "forward-char"; sets_mode_to = "default";};
    "shift-enter" = { cmd = "commandline -i \\n (commandline --search-field >/dev/null && echo --search-field) expand-abbr"; sets_mode_to = "default";};
    "\e\[1\;9B" = { cmd = "history-token-search-forward"; sets_mode_to = "default";};
    "escape" = { cmd = "\n\ \ \ \ \ \ \ \ if\ commandline\ -P\n\ \ \ \ \ \ \ \ \ \ \ \ commandline\ -f\ cancel\n\ \ \ \ \ \ \ \ else\n\ \ \ \ \ \ \ \ \ \ \ \ set\ fish_bind_mode\ default\n\ \ \ \ \ \ \ \ \ \ \ \ if\ test\ \(count\ \(commandline\ --cut-at-cursor\ \|\ tail\ -c2\)\)\ !=\ 2\n\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ commandline\ -f\ backward-char\n\ \ \ \ \ \ \ \ \ \ \ \ end\n\ \ \ \ \ \ \ \ \ \ \ \ commandline\ -f\ repaint-mode\n\ \ \ \ \ \ \ \ end\n\ \ \ bind --preset -M insert ctrl-\[ \n\ \ \ \ \ \ \ \ if\ commandline\ -P\n\ \ \ \ \ \ \ \ \ \ \ \ commandline\ -f\ cancel\n\ \ \ \ \ \ \ \ else\n\ \ \ \ \ \ \ \ \ \ \ \ set\ fish_bind_mode\ default\n\ \ \ \ \ \ \ \ \ \ \ \ if\ test\ \(count\ \(commandline\ --cut-at-cursor\ \|\ tail\ -c2\)\)\ !=\ 2\n\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ commandline\ -f\ backward-char\n\ \ \ \ \ \ \ \ \ \ \ \ end\n\ \ \ \ \ \ \ \ \ \ \ \ commandline\ -f\ repaint-mode\n\ \ \ \ \ \ \ \ end\n\ \ "; sets_mode_to = "default";};
    "|" = { cmd = "self-insert expand-abbr"; sets_mode_to = "default";};
    "alt-b" = { cmd = "prevd-or-backward-word"; sets_mode_to = "default";};
    "ctrl-enter" = { cmd = "execute"; sets_mode_to = "default";};
    "alt-f" = { cmd = "nextd-or-forward-word"; sets_mode_to = "default";};
    "alt-s" = { cmd = "for cmd in sudo doas please run0; if command -q $cmd; fish_commandline_prepend $cmd; break; end; end"; sets_mode_to = "default";};
    "ctrl-space" = { cmd = "test -n "$(commandline)" && commandline -i " " (commandline --search-field >/dev/null && echo --search-field)"; sets_mode_to = "default";};
    "ctrl-left" = { cmd = "backward-token"; sets_mode_to = "default";};
    "ctrl-y" = { cmd = "yank"; sets_mode_to = "default";};
    "alt-." = { cmd = "history-token-search-backward"; sets_mode_to = "default";};
    "ctrl-j" = { cmd = "execute"; sets_mode_to = "default";};
    "alt-left" = { cmd = "prevd-or-backward-word"; sets_mode_to = "default";};
    "ctrl-h" = { cmd = "backward-delete-char"; sets_mode_to = "default";};
    "alt-o" = { cmd = "__fish_preview_current_file"; sets_mode_to = "default";};
    "delete" = { cmd = "delete-char"; sets_mode_to = "default";};
    "" = { cmd = "self-insert"; sets_mode_to = "default";};
    "ctrl-d" = { cmd = "delete-or-exit"; sets_mode_to = "default";};
    "alt-d" = { cmd = "if test "$(commandline; printf .)" = \\n.; __fish_echo dirh; else; commandline -f kill-word; end"; sets_mode_to = "default";};
    "alt-right" = { cmd = "nextd-or-forward-word"; sets_mode_to = "default";};
    "ctrl-v" = { cmd = "fish_clipboard_paste"; sets_mode_to = "default";};
    "home" = { cmd = "beginning-of-line"; sets_mode_to = "default";};
    ";" = { cmd = "self-insert expand-abbr"; sets_mode_to = "default";};
    "backspace" = { cmd = "backward-delete-char"; sets_mode_to = "default";};
    "ctrl-c" = { cmd = "clear-commandline"; sets_mode_to = "default";};
  };
  "default" = {
    "ctrl-y" = { cmd = "yank"; };
    "x" = { cmd = "__fish_vi_delete_char"; };
    "down" = { cmd = "down-or-search"; };
    "ctrl-left" = { cmd = "backward-token"; };
    "D" = { cmd = "kill-line"; };
    "j" = { cmd = "fish_vi_run_count down-or-search"; };
    "f" = { cmd = "forward-jump"; };
    "alt-v" = { cmd = "edit_command_buffer"; };
    "ctrl-a" = { cmd = "fish_vi_inc"; };
    "s" = { cmd = "delete-char repaint-mode"; sets_mode_to = "insert";};
    "%" = { cmd = "jump-to-matching-bracket"; };
    "k" = { cmd = "fish_vi_run_count up-or-search"; };
    ";" = { cmd = "repeat-jump"; };
    "\e\[1\;9C" = { cmd = "nextd-or-forward-word"; };
    "ctrl-u" = { cmd = "backward-kill-line"; };
    "ctrl-x" = { cmd = "fish_vi_dec"; };
    "P" = { cmd = "yank"; };
    ":" = {
      "q" = { cmd = "exit"; };
    };
    "5" = { cmd = "fish_vi_arg_digit 5"; };
    "ctrl-r" = { cmd = "redo"; };
    "alt-#" = { cmd = "__fish_toggle_comment_commandline"; };
    "up" = { cmd = "up-or-search"; };
    "S" = { cmd = "kill-inner-line repaint-mode"; sets_mode_to = "insert";};
    "ctrl-j" = { cmd = "execute"; sets_mode_to = "insert";};
    "e" = { cmd = "fish_vi_run_count forward-word-end"; };
    "]" = { cmd = "history-token-search-forward"; };
    "delete" = { cmd = "delete-char"; };
    "b" = { cmd = "fish_vi_run_count backward-word"; };
    "alt-d" = { cmd = "if test "$(commandline; printf .)" = \\n.; __fish_echo dirh; else; commandline -f kill-word; end"; };
    "alt-l" = { cmd = "__fish_list_current_token"; };
    "alt-f" = { cmd = "nextd-or-forward-word"; };
    "right" = { cmd = "forward-char"; };
    "alt-s" = { cmd = "for cmd in sudo doas please run0; if command -q $cmd; fish_commandline_prepend $cmd; break; end; end"; };
    "r" = { cmd = "repaint-mode"; sets_mode_to = "replaceone";};
    "enter" = { cmd = "execute"; sets_mode_to = "insert";};
    "alt-w" = { cmd = "__fish_whatis_current_token"; };
    "\e\[1\;9D" = { cmd = "prevd-or-backward-word"; };
    "f1" = { cmd = "__fish_man_page"; };
    """ = {
      "+" = {
        "P" = { cmd = "fish_clipboard_paste"; };
        "y" = {
          "y" = { cmd = "fish_clipboard_copy"; };
        };
        "p" = { cmd = "set -g fish_cursor_end_mode exclusive forward-char set -g fish_cursor_end_mode inclusive fish_clipboard_paste"; };
        "Y" = { cmd = "fish_clipboard_copy"; };
      };
      "*" = {
        "p" = { cmd = "set -g fish_cursor_end_mode exclusive forward-char set -g fish_cursor_end_mode inclusive fish_clipboard_paste"; };
        "P" = { cmd = "fish_clipboard_paste"; };
        "Y" = { cmd = "fish_clipboard_copy"; };
        "y" = {
          "y" = { cmd = "fish_clipboard_copy"; };
        };
      };
    };
    "ctrl-l" = { cmd = "status test-terminal-feature scroll-content-up && commandline -f scrollback-push clear-screen"; };
    "t" = { cmd = "forward-jump-till"; };
    "ctrl-v" = { cmd = "fish_clipboard_paste"; };
    "~" = { cmd = "togglecase-char forward-single-char"; };
    "i" = { cmd = "repaint-mode"; sets_mode_to = "insert";};
    "9" = { cmd = "fish_vi_arg_digit 9"; };
    "4" = { cmd = "fish_vi_arg_digit 4"; };
    "ctrl-h" = { cmd = "backward-char"; };
    "backspace" = { cmd = "backward-char"; };
    "l" = { cmd = "fish_vi_run_count forward-char"; };
    "end" = { cmd = "end-of-line"; };
    "T" = { cmd = "backward-jump-till"; };
    "/" = { cmd = "history-pager repaint-mode"; sets_mode_to = "insert";};
    "8" = { cmd = "fish_vi_arg_digit 8"; };
    "alt-p" = { cmd = "__fish_paginate"; };
    "alt-up" = { cmd = "history-token-search-backward"; };
    "ctrl-m" = { cmd = "execute"; sets_mode_to = "insert";};
    "\e\[1\;9A" = { cmd = "history-token-search-backward"; };
    "alt-h" = { cmd = "__fish_man_page"; };
    "alt-left" = { cmd = "prevd-or-backward-word"; };
    "tab" = { cmd = "complete"; };
    "a" = { cmd = "set fish_cursor_end_mode exclusive forward-single-char repaint-mode"; sets_mode_to = "insert";};
    "R" = { cmd = "repaint-mode"; sets_mode_to = "replace";};
    "K" = { cmd = "man (commandline -t) 2>/dev/null; or echo -n \\a"; };
    "G" = { cmd = "end-of-buffer"; };
    "ctrl-d" = { cmd = "delete-or-exit"; };
    "[" = { cmd = "history-token-search-backward"; };
    "left" = { cmd = "backward-char"; };
    "o" = { cmd = "set fish_cursor_end_mode exclusive insert-line-under repaint-mode"; sets_mode_to = "insert";};
    "W" = { cmd = "fish_vi_run_count forward-bigword-vi"; };
    "w" = { cmd = "fish_vi_run_count forward-word-vi"; };
    "6" = { cmd = "fish_vi_arg_digit 6"; };
    "comma" = { cmd = "repeat-jump-reverse"; };
    "0" = { cmd = "if test -n "$__fish_vi_count"; fish_vi_arg_digit 0; else; commandline -f beginning-of-line; end"; };
    "pageup" = { cmd = "beginning-of-history"; };
    "ctrl-w" = { cmd = "backward-kill-path-component"; };
    "alt-down" = { cmd = "history-token-search-forward"; };
    "alt-b" = { cmd = "prevd-or-backward-word"; };
    "alt-right" = { cmd = "nextd-or-forward-word"; };
    "alt-y" = { cmd = "yank-pop"; };
    "ctrl-[" = { cmd = "set -g __fish_vi_count"; };
    "ctrl-i" = { cmd = "complete"; };
    "^" = { cmd = "beginning-of-line"; };
    "home" = { cmd = "beginning-of-line"; };
    "ctrl-s" = { cmd = "pager-toggle-search"; };
    "d" = {
      "$" = { cmd = "kill-line"; };
      "a" = {
        "w" = { cmd = "kill-a-word"; };
        "b" = { cmd = "jump-to-matching-bracket and jump-to-matching-bracket and begin-selection jump-to-matching-bracket kill-selection end-selection"; };
        "W" = { cmd = "kill-a-bigword"; };
      };
      "i" = {
        "w" = { cmd = "kill-inner-word"; };
        "W" = { cmd = "kill-inner-bigword"; };
        "b" = { cmd = "jump-till-matching-bracket and jump-till-matching-bracket and begin-selection jump-till-matching-bracket kill-selection end-selection"; };
      };
      "comma" = { cmd = "begin-selection repeat-jump-reverse kill-selection end-selection"; };
      ";" = { cmd = "begin-selection repeat-jump kill-selection end-selection"; };
      "0" = { cmd = "backward-kill-line"; };
      "^" = { cmd = "backward-kill-line"; };
    };
    "1" = { cmd = "fish_vi_arg_digit 1"; };
    "F" = { cmd = "backward-jump"; };
    "Y" = { cmd = "kill-whole-line yank"; };
    "E" = { cmd = "fish_vi_run_count forward-bigword-end"; };
    "shift-left" = { cmd = "backward-bigword"; };
    "escape" = { cmd = "set -g __fish_vi_count"; };
    "alt-e" = { cmd = "edit_command_buffer"; };
    "3" = { cmd = "fish_vi_arg_digit 3"; };
    "J" = { cmd = "end-of-line delete-char"; };
    "u" = { cmd = "undo"; };
    "c" = {
      "^" = { cmd = "backward-kill-line repaint-mode"; sets_mode_to = "insert";};
      "i" = {
        "w" = { cmd = "kill-inner-word repaint-mode"; sets_mode_to = "insert";};
        "W" = { cmd = "kill-inner-bigword repaint-mode"; sets_mode_to = "insert";};
        "b" = { cmd = "jump-till-matching-bracket and jump-till-matching-bracket and begin-selection jump-till-matching-bracket kill-selection end-selection"; sets_mode_to = "insert";};
      };
      "a" = {
        "W" = { cmd = "kill-a-bigword repaint-mode"; sets_mode_to = "insert";};
        "w" = { cmd = "kill-a-word repaint-mode"; sets_mode_to = "insert";};
        "b" = { cmd = "jump-to-matching-bracket and jump-to-matching-bracket and begin-selection jump-to-matching-bracket kill-selection end-selection"; sets_mode_to = "insert";};
      };
      "$" = { cmd = "kill-line repaint-mode"; sets_mode_to = "insert";};
      "0" = { cmd = "backward-kill-line repaint-mode"; sets_mode_to = "insert";};
    };
    "_" = { cmd = "beginning-of-line"; };
    "pagedown" = { cmd = "end-of-history"; };
    "\e\[1\;9B" = { cmd = "history-token-search-forward"; };
    "A" = { cmd = "set fish_cursor_end_mode exclusive end-of-line repaint-mode"; sets_mode_to = "insert";};
    "shift-tab" = { cmd = "complete-and-search"; };
    "I" = { cmd = "beginning-of-line repaint-mode"; sets_mode_to = "insert";};
    "$" = { cmd = "end-of-line"; };
    "X" = { cmd = "__fish_vi_backward_delete_char"; };
    "B" = { cmd = "fish_vi_run_count backward-bigword"; };
    "shift-delete" = { cmd = "history-delete or backward-delete-char"; };
    "y" = {
      "0" = { cmd = "backward-kill-line yank"; };
      "i" = {
        "W" = { cmd = "kill-inner-bigword yank"; };
        "w" = { cmd = "kill-inner-word yank"; };
        "b" = { cmd = "jump-till-matching-bracket and jump-till-matching-bracket and begin-selection jump-till-matching-bracket fish_vi_yank_selection end-selection"; };
      };
      "a" = {
        "W" = { cmd = "kill-a-bigword yank"; };
        "b" = { cmd = "jump-to-matching-bracket and jump-to-matching-bracket and begin-selection jump-to-matching-bracket fish_vi_yank_selection end-selection"; };
        "w" = { cmd = "kill-a-word yank"; };
      };
      "^" = { cmd = "backward-kill-line yank"; };
      "$" = { cmd = "kill-line yank"; };
    };
    "p" = { cmd = "set -g fish_cursor_end_mode exclusive forward-char set -g fish_cursor_end_mode inclusive yank"; };
    "shift-right" = { cmd = "forward-bigword"; };
    "#" = { cmd = "__fish_toggle_comment_commandline"; };
    "v" = { cmd = "begin-selection repaint-mode"; sets_mode_to = "visual";};
    "O" = { cmd = "set fish_cursor_end_mode exclusive insert-line-over repaint-mode"; sets_mode_to = "insert";};
    "2" = { cmd = "fish_vi_arg_digit 2"; };
    "ctrl-k" = { cmd = "kill-line"; };
    "g" = {
      "g" = { cmd = "beginning-of-buffer"; };
      "^" = { cmd = "beginning-of-line"; };
      "~" = { cmd = "fish_vi_start_operator swap-case"; };
      "u" = { cmd = "downcase-word"; };
      "U" = { cmd = "upcase-word"; };
      "$" = { cmd = "end-of-line"; };
      "E" = { cmd = "fish_vi_run_count backward-bigword-end"; };
      "p" = { cmd = "yank-pop"; };
      "e" = { cmd = "fish_vi_run_count backward-word-end"; };
    };
    "alt-." = { cmd = "history-token-search-backward"; };
    "7" = { cmd = "fish_vi_arg_digit 7"; };
    "C" = { cmd = "kill-line repaint-mode"; sets_mode_to = "insert";};
    "ctrl-right" = { cmd = "forward-token"; };
    "ctrl-c" = { cmd = "clear-commandline repaint-mode"; sets_mode_to = "insert";};
    "h" = { cmd = "fish_vi_run_count backward-char"; };
    "alt-o" = { cmd = "__fish_preview_current_file"; };
  };
  "visual" = {
    "alt-down" = { cmd = "history-token-search-forward"; sets_mode_to = "default";};
    "ctrl-c" = { cmd = "end-selection repaint-mode"; sets_mode_to = "default";};
    "alt-h" = { cmd = "__fish_man_page"; sets_mode_to = "default";};
    "l" = { cmd = "forward-char"; sets_mode_to = "default";};
    "T" = { cmd = "backward-jump-till"; sets_mode_to = "default";};
    "e" = { cmd = "forward-word-end"; sets_mode_to = "default";};
    "right" = { cmd = "forward-char"; sets_mode_to = "default";};
    "t" = { cmd = "forward-jump-till"; sets_mode_to = "default";};
    "s" = { cmd = "kill-selection end-selection repaint-mode"; sets_mode_to = "insert";};
    "alt-#" = { cmd = "__fish_toggle_comment_commandline"; sets_mode_to = "default";};
    "_" = { cmd = "beginning-of-line"; sets_mode_to = "default";};
    "%" = { cmd = "jump-to-matching-bracket"; sets_mode_to = "default";};
    "ctrl-s" = { cmd = "pager-toggle-search"; sets_mode_to = "default";};
    "ctrl-w" = { cmd = "backward-kill-path-component"; sets_mode_to = "default";};
    "alt-o" = { cmd = "__fish_preview_current_file"; sets_mode_to = "default";};
    "left" = { cmd = "backward-char"; sets_mode_to = "default";};
    "shift-left" = { cmd = "backward-bigword"; sets_mode_to = "default";};
    "alt-p" = { cmd = "__fish_paginate"; sets_mode_to = "default";};
    "F" = { cmd = "backward-jump"; sets_mode_to = "default";};
    "ctrl-left" = { cmd = "backward-token"; sets_mode_to = "default";};
    "b" = { cmd = "backward-word"; sets_mode_to = "default";};
    "f1" = { cmd = "__fish_man_page"; sets_mode_to = "default";};
    "shift-delete" = { cmd = "history-delete or backward-delete-char"; sets_mode_to = "default";};
    """ = {
      "+" = {
        "y" = { cmd = "fish_clipboard_copy; commandline -f end-selection repaint-mode"; sets_mode_to = "default";};
      };
      "*" = {
        "y" = { cmd = "fish_clipboard_copy; commandline -f end-selection repaint-mode"; sets_mode_to = "default";};
      };
    };
    "shift-tab" = { cmd = "complete-and-search"; sets_mode_to = "default";};
    "alt-b" = { cmd = "prevd-or-backward-word"; sets_mode_to = "default";};
    "#" = { cmd = "__fish_toggle_comment_commandline"; sets_mode_to = "default";};
    "~" = { cmd = "togglecase-selection end-selection repaint-mode"; sets_mode_to = "default";};
    "y" = { cmd = "fish_vi_yank_selection end-selection repaint-mode"; sets_mode_to = "default";};
    "f" = { cmd = "forward-jump"; sets_mode_to = "default";};
    "x" = { cmd = "kill-selection end-selection repaint-mode"; sets_mode_to = "default";};
    "alt-y" = { cmd = "yank-pop"; sets_mode_to = "default";};
    "$" = { cmd = "end-of-line"; sets_mode_to = "default";};
    ";" = { cmd = "repeat-jump"; sets_mode_to = "default";};
    "W" = { cmd = "forward-bigword-vi"; sets_mode_to = "default";};
    "w" = { cmd = "forward-word-vi"; sets_mode_to = "default";};
    "j" = { cmd = "down-line"; sets_mode_to = "default";};
    "k" = { cmd = "up-line"; sets_mode_to = "default";};
    "end" = { cmd = "end-of-line"; sets_mode_to = "default";};
    "down" = { cmd = "down-or-search"; sets_mode_to = "default";};
    "alt-up" = { cmd = "history-token-search-backward"; sets_mode_to = "default";};
    "i" = { cmd = "end-selection repaint-mode"; sets_mode_to = "insert";};
    "g" = {
      "^" = { cmd = "beginning-of-line"; sets_mode_to = "default";};
      "e" = { cmd = "backward-word-end"; sets_mode_to = "default";};
      "u" = { cmd = "downcase-selection end-selection repaint-mode"; sets_mode_to = "default";};
      "$" = { cmd = "end-of-line"; sets_mode_to = "default";};
      "U" = { cmd = "upcase-selection end-selection repaint-mode"; sets_mode_to = "default";};
      "E" = { cmd = "backward-bigword-end"; sets_mode_to = "default";};
    };
    "I" = { cmd = "end-selection beginning-of-line repaint-mode"; sets_mode_to = "insert";};
    "alt-." = { cmd = "history-token-search-backward"; sets_mode_to = "default";};
    "home" = { cmd = "beginning-of-line"; sets_mode_to = "default";};
    "alt-l" = { cmd = "__fish_list_current_token"; sets_mode_to = "default";};
    "ctrl-x" = { cmd = "fish_clipboard_copy"; sets_mode_to = "default";};
    "alt-s" = { cmd = "for cmd in sudo doas please run0; if command -q $cmd; fish_commandline_prepend $cmd; break; end; end"; sets_mode_to = "default";};
    "o" = { cmd = "swap-selection-start-stop repaint-mode"; sets_mode_to = "default";};
    "ctrl-[" = { cmd = "end-selection repaint-mode"; sets_mode_to = "default";};
    "X" = { cmd = "kill-whole-line end-selection repaint-mode"; sets_mode_to = "default";};
    "\e\[1\;9B" = { cmd = "history-token-search-forward"; sets_mode_to = "default";};
    "pageup" = { cmd = "beginning-of-history"; sets_mode_to = "default";};
    "ctrl-l" = { cmd = "status test-terminal-feature scroll-content-up && commandline -f scrollback-push clear-screen"; sets_mode_to = "default";};
    "up" = { cmd = "up-or-search"; sets_mode_to = "default";};
    "ctrl-u" = { cmd = "backward-kill-line"; sets_mode_to = "default";};
    "h" = { cmd = "backward-char"; sets_mode_to = "default";};
    "alt-right" = { cmd = "nextd-or-forward-word"; sets_mode_to = "default";};
    "ctrl-y" = { cmd = "yank"; sets_mode_to = "default";};
    "v" = { cmd = "end-selection repaint-mode"; sets_mode_to = "default";};
    "\e\[1\;9D" = { cmd = "prevd-or-backward-word"; sets_mode_to = "default";};
    "\e\[1\;9C" = { cmd = "nextd-or-forward-word"; sets_mode_to = "default";};
    "0" = { cmd = "beginning-of-line"; sets_mode_to = "default";};
    "ctrl-k" = { cmd = "kill-line"; sets_mode_to = "default";};
    "alt-v" = { cmd = "edit_command_buffer"; sets_mode_to = "default";};
    "ctrl-v" = { cmd = "fish_clipboard_paste"; sets_mode_to = "default";};
    "ctrl-i" = { cmd = "complete"; sets_mode_to = "default";};
    "d" = { cmd = "kill-selection end-selection backward-char repaint-mode"; sets_mode_to = "default";};
    "^" = { cmd = "beginning-of-line"; sets_mode_to = "default";};
    "alt-f" = { cmd = "nextd-or-forward-word"; sets_mode_to = "default";};
    "ctrl-right" = { cmd = "forward-token"; sets_mode_to = "default";};
    "alt-w" = { cmd = "__fish_whatis_current_token"; sets_mode_to = "default";};
    "\e\[1\;9A" = { cmd = "history-token-search-backward"; sets_mode_to = "default";};
    "shift-right" = { cmd = "forward-bigword"; sets_mode_to = "default";};
    "E" = { cmd = "forward-bigword-end"; sets_mode_to = "default";};
    "tab" = { cmd = "complete"; sets_mode_to = "default";};
    "B" = { cmd = "backward-bigword"; sets_mode_to = "default";};
    "alt-e" = { cmd = "edit_command_buffer"; sets_mode_to = "default";};
    "alt-d" = { cmd = "if test "$(commandline; printf .)" = \\n.; __fish_echo dirh; else; commandline -f kill-word; end"; sets_mode_to = "default";};
    "pagedown" = { cmd = "end-of-history"; sets_mode_to = "default";};
    "c" = { cmd = "kill-selection end-selection repaint-mode"; sets_mode_to = "insert";};
    "alt-left" = { cmd = "prevd-or-backward-word"; sets_mode_to = "default";};
    "comma" = { cmd = "repeat-jump-reverse"; sets_mode_to = "default";};
    "ctrl-d" = { cmd = "delete-or-exit"; sets_mode_to = "default";};
    "escape" = { cmd = "end-selection repaint-mode"; sets_mode_to = "default";};
  };
  "F" = {
    "" = { cmd = "get-key fish_vi_exec_motion commandline --backward-jump=$fish_key set -eg fish_key"; sets_mode_to = "default";};
  };
  "t" = {
    "" = { cmd = "get-key fish_vi_exec_motion commandline --forward-jump-till=$fish_key set -eg fish_key"; sets_mode_to = "default";};
  };
  "replace" = {
    "escape" = { cmd = "cancel repaint-mode"; sets_mode_to = "default";};
    "#" = { cmd = "__fish_toggle_comment_commandline"; sets_mode_to = "default";};
    "ctrl-m" = { cmd = "execute repaint-mode"; sets_mode_to = "insert";};
    "shift-backspace" = { cmd = "backward-char"; sets_mode_to = "default";};
    "ctrl-[" = { cmd = "cancel repaint-mode"; sets_mode_to = "default";};
    "enter" = { cmd = "execute repaint-mode"; sets_mode_to = "insert";};
    "" = { cmd = "delete-char self-insert"; sets_mode_to = "default";};
    "backspace" = { cmd = "backward-char"; sets_mode_to = "default";};
    "ctrl-j" = { cmd = "execute repaint-mode"; sets_mode_to = "insert";};
  };
  "replaceone" = {
    "escape" = { cmd = "cancel repaint-mode"; sets_mode_to = "default";};
    "" = { cmd = "set -g fish_cursor_end_mode exclusive delete-char self-insert backward-char repaint-mode set -g fish_cursor_end_mode inclusive"; sets_mode_to = "default";};
    "ctrl-j" = { cmd = "set -g fish_cursor_end_mode exclusive commandline -f delete-char; commandline -i \\n; commandline -f backward-char repaint-mode set -g fish_cursor_end_mode inclusive"; sets_mode_to = "default";};
    "enter" = { cmd = "set -g fish_cursor_end_mode exclusive commandline -f delete-char; commandline -i \\n; commandline -f backward-char repaint-mode set -g fish_cursor_end_mode inclusive"; sets_mode_to = "default";};
    "ctrl-[" = { cmd = "cancel repaint-mode"; sets_mode_to = "default";};
    "ctrl-m" = { cmd = "set -g fish_cursor_end_mode exclusive commandline -f delete-char; commandline -i \\n; commandline -f backward-char repaint-mode set -g fish_cursor_end_mode inclusive"; sets_mode_to = "default";};
  };
}