382
|
1 # vim: ft=conf
|
|
2 #
|
|
3 # In this config file, qutebrowser's key bindings are configured.
|
|
4 # The format looks like this:
|
|
5 #
|
|
6 # [keymode]
|
|
7 #
|
|
8 # command
|
|
9 # keychain
|
|
10 # keychain2
|
|
11 # ...
|
|
12 #
|
|
13 # All blank lines and lines starting with '#' are ignored.
|
|
14 # Inline-comments are not permitted.
|
|
15 #
|
|
16 # keymode is a comma separated list of modes in which the key binding should be
|
|
17 # active. If keymode starts with !, the key binding is active in all modes
|
|
18 # except the listed modes.
|
|
19 #
|
|
20 # For special keys (can't be part of a keychain), enclose them in `<`...`>`.
|
|
21 # For modifiers, you can use either `-` or `+` as delimiters, and these names:
|
|
22 #
|
|
23 # * Control: `Control`, `Ctrl`
|
|
24 # * Meta: `Meta`, `Windows`, `Mod4`
|
|
25 # * Alt: `Alt`, `Mod1`
|
|
26 # * Shift: `Shift`
|
|
27 #
|
|
28 # For simple keys (no `<>`-signs), a capital letter means the key is pressed
|
|
29 # with Shift. For special keys (with `<>`-signs), you need to explicitly add
|
|
30 # `Shift-` to match a key pressed with shift.
|
|
31 #
|
|
32 # Note that default keybindings are always bound, and need to be explicitly
|
|
33 # unbound if you wish to remove them:
|
|
34 #
|
|
35 # <unbound>
|
|
36 # keychain
|
|
37 # keychain2
|
|
38 # ...
|
|
39
|
|
40 [!normal]
|
|
41
|
|
42 leave-mode
|
|
43 <escape>
|
|
44 <ctrl-[>
|
|
45
|
|
46 [normal]
|
|
47 # Keybindings for normal mode.
|
|
48
|
|
49 clear-keychain ;; search ;; fullscreen --leave
|
|
50 <escape>
|
|
51 <ctrl-[>
|
|
52
|
|
53 set-cmd-text -s :open
|
|
54 o
|
|
55
|
|
56 set-cmd-text :open {url:pretty}
|
|
57 go
|
|
58 O
|
|
59
|
|
60 set-cmd-text :open -t -i {url:pretty}
|
|
61 gO
|
|
62
|
|
63 set-cmd-text -s :open -b
|
|
64 xo
|
|
65
|
|
66 set-cmd-text :open -b -i {url:pretty}
|
|
67 xO
|
|
68
|
|
69 set-cmd-text /
|
|
70 /
|
|
71
|
|
72 set-cmd-text ?
|
|
73 ?
|
|
74
|
|
75 set-cmd-text :
|
|
76 :
|
|
77
|
|
78 open -t
|
|
79 ga
|
|
80 <ctrl-t>
|
|
81
|
|
82 open -w
|
|
83 <ctrl-n>
|
|
84
|
|
85 tab-close
|
|
86 d
|
|
87 <ctrl-w>
|
|
88
|
|
89 tab-close -o
|
|
90 D
|
|
91
|
|
92 tab-only
|
|
93 co
|
|
94
|
|
95 tab-move
|
|
96 gm
|
|
97
|
|
98 tab-next
|
|
99 <ctrl-pgdown>
|
|
100 K
|
|
101
|
|
102 tab-prev
|
|
103 <ctrl-pgup>
|
|
104 J
|
|
105
|
|
106 tab-clone
|
|
107 gC
|
|
108
|
|
109 reload
|
|
110 r
|
|
111 <f5>
|
|
112
|
|
113 reload -f
|
|
114 R
|
|
115 <ctrl-f5>
|
|
116
|
|
117 back
|
|
118 H
|
|
119 <back>
|
|
120
|
|
121 forward
|
|
122 L
|
|
123 <forward>
|
|
124
|
|
125 fullscreen
|
|
126 <f11>
|
|
127
|
|
128 hint
|
|
129 f
|
|
130
|
|
131 hint all tab
|
|
132 F
|
|
133
|
|
134 hint all tab-bg
|
|
135 ;b
|
|
136
|
|
137 hint all tab-fg
|
|
138 ;f
|
|
139
|
|
140 hint all hover
|
|
141 ;h
|
|
142
|
|
143 hint images
|
|
144 ;i
|
|
145
|
|
146 hint images tab
|
|
147 ;I
|
|
148
|
|
149 hint links fill :open {hint-url}
|
|
150 ;o
|
|
151
|
|
152 hint links fill :open -t -i {hint-url}
|
|
153 ;O
|
|
154
|
|
155 hint links yank
|
|
156 ;y
|
|
157
|
|
158 hint links yank-primary
|
|
159 ;Y
|
|
160
|
|
161 hint --rapid links tab-bg
|
|
162 ;r
|
|
163
|
|
164 hint --rapid links window
|
|
165 ;R
|
|
166
|
|
167 hint links download
|
|
168 ;d
|
|
169
|
|
170 hint inputs
|
|
171 ;t
|
|
172
|
|
173 scroll left
|
|
174 h
|
|
175
|
|
176 scroll down
|
|
177 j
|
|
178
|
|
179 scroll up
|
|
180 k
|
|
181
|
|
182 scroll right
|
|
183 l
|
|
184
|
|
185 undo
|
|
186 u
|
|
187 <ctrl-shift-t>
|
|
188
|
|
189 scroll-perc 0
|
|
190 gg
|
|
191
|
|
192 scroll-perc
|
|
193 G
|
|
194
|
|
195 search-next
|
|
196 n
|
|
197
|
|
198 search-prev
|
|
199 N
|
|
200
|
|
201 enter-mode insert
|
|
202 i
|
|
203
|
|
204 enter-mode caret
|
|
205 v
|
|
206
|
|
207 enter-mode set_mark
|
|
208 `
|
|
209
|
|
210 enter-mode jump_mark
|
|
211 '
|
|
212
|
|
213 yank
|
|
214 yy
|
|
215
|
|
216 yank -s
|
|
217 yY
|
|
218
|
|
219 yank title
|
|
220 yt
|
|
221
|
|
222 yank title -s
|
|
223 yT
|
|
224
|
|
225 yank domain
|
|
226 yd
|
|
227
|
|
228 yank domain -s
|
|
229 yD
|
|
230
|
|
231 yank pretty-url
|
|
232 yp
|
|
233
|
|
234 yank pretty-url -s
|
|
235 yP
|
|
236
|
|
237 open -- {clipboard}
|
|
238 pp
|
|
239
|
|
240 open -- {primary}
|
|
241 pP
|
|
242
|
|
243 open -t -- {clipboard}
|
|
244 Pp
|
|
245
|
|
246 open -t -- {primary}
|
|
247 PP
|
|
248
|
|
249 quickmark-save
|
|
250 m
|
|
251
|
|
252 set-cmd-text -s :quickmark-load
|
|
253 b
|
|
254
|
|
255 set-cmd-text -s :quickmark-load -t
|
|
256 B
|
|
257
|
|
258 bookmark-add
|
|
259 M
|
|
260
|
|
261 set-cmd-text -s :bookmark-load
|
|
262 gb
|
|
263
|
|
264 set-cmd-text -s :bookmark-load -t
|
|
265 gB
|
|
266
|
|
267 save
|
|
268 sf
|
|
269
|
|
270 set-cmd-text -s :set
|
|
271 ss
|
|
272
|
|
273 set-cmd-text -s :set -t
|
|
274 sl
|
|
275
|
|
276 set-cmd-text -s :bind
|
|
277 sk
|
|
278
|
|
279 zoom-out
|
|
280 -
|
|
281
|
|
282 zoom-in
|
|
283 +
|
|
284
|
|
285 zoom
|
|
286 =
|
|
287
|
|
288 navigate prev
|
|
289 [[
|
|
290
|
|
291 navigate next
|
|
292 ]]
|
|
293
|
|
294 navigate prev -t
|
|
295 {{
|
|
296
|
|
297 navigate next -t
|
|
298 }}
|
|
299
|
|
300 navigate up
|
|
301 gu
|
|
302
|
|
303 navigate up -t
|
|
304 gU
|
|
305
|
|
306 navigate increment
|
|
307 <ctrl-a>
|
|
308
|
|
309 navigate decrement
|
|
310 <ctrl-x>
|
|
311
|
|
312 download
|
|
313 gd
|
|
314
|
|
315 download-cancel
|
|
316 ad
|
|
317
|
|
318 download-clear
|
|
319 cd
|
|
320
|
|
321 view-source
|
|
322 gf
|
|
323
|
|
324 set-cmd-text -s :buffer
|
|
325 gt
|
|
326
|
|
327 tab-focus last
|
|
328 <ctrl-tab>
|
|
329
|
|
330 enter-mode passthrough
|
|
331 <ctrl-v>
|
|
332
|
|
333 quit
|
|
334 <ctrl-q>
|
|
335
|
|
336 scroll-page 0 1
|
|
337 <ctrl-f>
|
|
338
|
|
339 scroll-page 0 -1
|
|
340 <ctrl-b>
|
|
341
|
|
342 scroll-page 0 0.5
|
|
343 <ctrl-d>
|
|
344
|
|
345 scroll-page 0 -0.5
|
|
346 <ctrl-u>
|
|
347
|
|
348 tab-focus 1
|
|
349 <alt-1>
|
|
350
|
|
351 tab-focus 2
|
|
352 <alt-2>
|
|
353
|
|
354 tab-focus 3
|
|
355 <alt-3>
|
|
356
|
|
357 tab-focus 4
|
|
358 <alt-4>
|
|
359
|
|
360 tab-focus 5
|
|
361 <alt-5>
|
|
362
|
|
363 tab-focus 6
|
|
364 <alt-6>
|
|
365
|
|
366 tab-focus 7
|
|
367 <alt-7>
|
|
368
|
|
369 tab-focus 8
|
|
370 <alt-8>
|
|
371
|
|
372 tab-focus 9
|
|
373 <alt-9>
|
|
374
|
|
375 home
|
|
376 <ctrl-h>
|
|
377
|
|
378 stop
|
|
379 <ctrl-s>
|
|
380
|
|
381 print
|
|
382 <ctrl-alt-p>
|
|
383
|
|
384 open qute:settings
|
|
385 Ss
|
|
386
|
|
387 follow-selected
|
|
388 <return>
|
|
389 <ctrl-m>
|
|
390 <ctrl-j>
|
|
391 <shift-return>
|
|
392 <enter>
|
|
393 <shift-enter>
|
|
394
|
|
395 follow-selected -t
|
|
396 <ctrl-return>
|
|
397 <ctrl-enter>
|
|
398
|
|
399 repeat-command
|
|
400 .
|
|
401
|
|
402 record-macro
|
|
403 q
|
|
404
|
|
405 run-macro
|
|
406 @
|
|
407
|
|
408 set-cmd-text -s :open -t
|
|
409 t
|
|
410
|
|
411 <unbound>
|
|
412 th
|
|
413 wh
|
|
414 tl
|
|
415 wl
|
|
416 gl
|
|
417 gr
|
|
418 wp
|
|
419 wP
|
|
420 wb
|
|
421 wB
|
|
422 wi
|
|
423 wo
|
|
424 wO
|
|
425 wf
|
|
426
|
|
427 tab-move -
|
|
428 <
|
|
429
|
|
430 tab-move +
|
|
431 >
|
|
432
|
|
433 set-cmd-text -s :open -w
|
|
434 w
|
|
435
|
|
436 set-cmd-text :open -t {url:pretty}
|
|
437 T
|
|
438
|
|
439 set-cmd-text :open -w {url:pretty}
|
|
440 W
|
|
441
|
|
442 [insert]
|
|
443 # Keybindings for insert mode.
|
|
444 # Since normal keypresses are passed through, only special keys are
|
|
445 # supported in this mode.
|
|
446 # Useful hidden commands to map in this section:
|
|
447 # * `open-editor`: Open a texteditor with the focused field.
|
|
448 # * `paste-primary`: Paste primary selection at cursor position.
|
|
449
|
|
450 open-editor
|
|
451 <ctrl-e>
|
|
452
|
|
453 insert-text {primary}
|
|
454 <shift-ins>
|
|
455
|
|
456 [hint]
|
|
457 # Keybindings for hint mode.
|
|
458 # Since normal keypresses are passed through, only special keys are
|
|
459 # supported in this mode.
|
|
460 # Useful hidden commands to map in this section:
|
|
461 # * `follow-hint`: Follow the currently selected hint.
|
|
462
|
|
463 follow-hint
|
|
464 <return>
|
|
465 <ctrl-m>
|
|
466 <ctrl-j>
|
|
467 <shift-return>
|
|
468 <enter>
|
|
469 <shift-enter>
|
|
470
|
|
471 hint --rapid links tab-bg
|
|
472 <ctrl-r>
|
|
473
|
|
474 hint links
|
|
475 <ctrl-f>
|
|
476
|
|
477 hint all tab-bg
|
|
478 <ctrl-b>
|
|
479
|
|
480 [command]
|
|
481 # Keybindings for command mode.
|
|
482 # Since normal keypresses are passed through, only special keys are
|
|
483 # supported in this mode.
|
|
484 # Useful hidden commands to map in this section:
|
|
485 # * `command-history-prev`: Switch to previous command in history.
|
|
486 # * `command-history-next`: Switch to next command in history.
|
|
487 # * `completion-item-focus`: Select another item in completion.
|
|
488 # * `command-accept`: Execute the command currently in the commandline.
|
|
489
|
|
490 command-history-prev
|
|
491 <ctrl-p>
|
|
492
|
|
493 command-history-next
|
|
494 <ctrl-n>
|
|
495
|
|
496 completion-item-focus prev
|
|
497 <shift-tab>
|
|
498 <up>
|
|
499
|
|
500 completion-item-focus next
|
|
501 <tab>
|
|
502 <down>
|
|
503
|
|
504 completion-item-focus next-category
|
|
505 <ctrl-tab>
|
|
506
|
|
507 completion-item-focus prev-category
|
|
508 <ctrl-shift-tab>
|
|
509
|
|
510 completion-item-del
|
|
511 <ctrl-d>
|
|
512
|
|
513 command-accept
|
|
514 <return>
|
|
515 <ctrl-m>
|
|
516 <ctrl-j>
|
|
517 <shift-return>
|
|
518 <enter>
|
|
519 <shift-enter>
|
|
520
|
|
521 [prompt]
|
|
522 # Keybindings for prompts in the status line.
|
|
523 # You can bind normal keys in this mode, but they will be only active
|
|
524 # when a yes/no-prompt is asked. For other prompt modes, you can only
|
|
525 # bind special keys.
|
|
526 # Useful hidden commands to map in this section:
|
|
527 # * `prompt-accept`: Confirm the entered value.
|
|
528 # * `prompt-accept yes`: Answer yes to a yes/no question.
|
|
529 # * `prompt-accept no`: Answer no to a yes/no question.
|
|
530
|
|
531 prompt-accept
|
|
532 <return>
|
|
533 <ctrl-m>
|
|
534 <ctrl-j>
|
|
535 <shift-return>
|
|
536 <enter>
|
|
537 <shift-enter>
|
|
538
|
|
539 prompt-accept yes
|
|
540 y
|
|
541
|
|
542 prompt-accept no
|
|
543 n
|
|
544
|
|
545 prompt-open-download
|
|
546 <ctrl-x>
|
|
547
|
|
548 prompt-item-focus prev
|
|
549 <shift-tab>
|
|
550 <up>
|
|
551
|
|
552 prompt-item-focus next
|
|
553 <tab>
|
|
554 <down>
|
|
555
|
|
556 [command,prompt]
|
|
557
|
|
558 rl-backward-char
|
|
559 <ctrl-b>
|
|
560
|
|
561 rl-forward-char
|
|
562 <ctrl-f>
|
|
563
|
|
564 rl-backward-word
|
|
565 <alt-b>
|
|
566
|
|
567 rl-forward-word
|
|
568 <alt-f>
|
|
569
|
|
570 rl-beginning-of-line
|
|
571 <ctrl-a>
|
|
572
|
|
573 rl-end-of-line
|
|
574 <ctrl-e>
|
|
575
|
|
576 rl-unix-line-discard
|
|
577 <ctrl-u>
|
|
578
|
|
579 rl-kill-line
|
|
580 <ctrl-k>
|
|
581
|
|
582 rl-kill-word
|
|
583 <alt-d>
|
|
584
|
|
585 rl-unix-word-rubout
|
|
586 <ctrl-w>
|
|
587
|
|
588 rl-backward-kill-word
|
|
589 <alt-backspace>
|
|
590
|
|
591 rl-yank
|
|
592 <ctrl-y>
|
|
593
|
|
594 rl-delete-char
|
|
595 <ctrl-?>
|
|
596
|
|
597 rl-backward-delete-char
|
|
598 <ctrl-h>
|
|
599
|
|
600 [caret]
|
|
601
|
|
602 toggle-selection
|
|
603 v
|
|
604 <space>
|
|
605
|
|
606 drop-selection
|
|
607 <ctrl-space>
|
|
608
|
|
609 enter-mode normal
|
|
610 c
|
|
611
|
|
612 move-to-next-line
|
|
613 j
|
|
614
|
|
615 move-to-prev-line
|
|
616 k
|
|
617
|
|
618 move-to-next-char
|
|
619 l
|
|
620
|
|
621 move-to-prev-char
|
|
622 h
|
|
623
|
|
624 move-to-end-of-word
|
|
625 e
|
|
626
|
|
627 move-to-next-word
|
|
628 w
|
|
629
|
|
630 move-to-prev-word
|
|
631 b
|
|
632
|
|
633 move-to-start-of-next-block
|
|
634 ]
|
|
635
|
|
636 move-to-start-of-prev-block
|
|
637 [
|
|
638
|
|
639 move-to-end-of-next-block
|
|
640 }
|
|
641
|
|
642 move-to-end-of-prev-block
|
|
643 {
|
|
644
|
|
645 move-to-start-of-line
|
|
646 0
|
|
647
|
|
648 move-to-end-of-line
|
|
649 $
|
|
650
|
|
651 move-to-start-of-document
|
|
652 gg
|
|
653
|
|
654 move-to-end-of-document
|
|
655 G
|
|
656
|
|
657 yank selection -s
|
|
658 Y
|
|
659
|
|
660 yank selection
|
|
661 y
|
|
662 <return>
|
|
663 <ctrl-m>
|
|
664 <ctrl-j>
|
|
665 <shift-return>
|
|
666 <enter>
|
|
667 <shift-enter>
|
|
668
|
|
669 scroll left
|
|
670 H
|
|
671
|
|
672 scroll down
|
|
673 J
|
|
674
|
|
675 scroll up
|
|
676 K
|
|
677
|
|
678 scroll right
|
|
679 L
|
|
680
|