]> git.rmz.io Git - dotfiles.git/blob - qutebrowser/keys.conf
vim: don't jump to first error when :make
[dotfiles.git] / qutebrowser / keys.conf
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. You can bind multiple commands
31 # by separating them with `;;`.
32
33 [!normal]
34
35 clear-keychain ;; leave-mode
36 <Escape>
37 <Ctrl-[>
38
39 [normal]
40 # Keybindings for normal mode.
41
42 set-cmd-text -s :open
43 o
44
45 set-cmd-text :open {url}
46 go
47
48 set-cmd-text -s :open -t
49 O
50
51 set-cmd-text :open -t {url}
52 gO
53
54 set-cmd-text -s :open -b
55 xo
56
57 set-cmd-text :open -b {url}
58 xO
59
60 set-cmd-text -s :open -w
61 wo
62
63 set-cmd-text :open -w {url}
64 wO
65
66 open -t
67 <Ctrl-T>
68
69 tab-close
70 d
71 <Ctrl-W>
72
73 tab-close -o
74 D
75
76 tab-focus
77 T
78
79 tab-move
80 gm
81
82 tab-move -
83 gj
84
85 tab-move +
86 gk
87
88 tab-next
89 K
90 gt
91
92 tab-prev
93 J
94 gT
95
96 tab-clone
97 gC
98
99 reload
100 r
101
102 reload -f
103 R
104
105 back
106 H
107 <Backspace>
108
109 back -t
110 th
111
112 back -w
113 wh
114
115 forward
116 L
117
118 forward -t
119 tl
120
121 forward -w
122 wl
123
124 fullscreen
125 <F11>
126
127 hint
128 f
129
130 hint all tab
131 F
132
133 hint all window
134 wf
135
136 hint all tab-bg
137 ;b
138
139 hint all hover
140 ;h
141
142 hint images
143 ;i
144
145 hint images tab
146 ;I
147
148 hint images tab-bg
149 .i
150
151 hint links fill ":open {hint-url}"
152 ;o
153
154 hint links fill ":open -t {hint-url}"
155 ;O
156
157 hint links fill ":open -b {hint-url}"
158 .o
159
160 hint links yank
161 ;y
162
163 hint links yank-primary
164 ;Y
165
166 hint --rapid links tab-bg
167 ;r
168
169 hint --rapid links window
170 ;R
171
172 hint links download
173 ;d
174
175 scroll left
176 h
177
178 scroll down
179 j
180
181 scroll up
182 k
183
184 scroll right
185 l
186
187 undo
188 u
189 <Ctrl-Shift-T>
190
191 scroll-perc 0
192 gg
193
194 scroll-perc
195 G
196
197 search-next
198 n
199
200 search-prev
201 N
202
203 enter-mode insert
204 i
205
206 yank
207 yy
208
209 yank -s
210 yY
211
212 yank -t
213 yt
214
215 yank -ts
216 yT
217
218 paste
219 pp
220
221 paste -s
222 pP
223
224 paste -t
225 Pp
226
227 paste -ts
228 PP
229
230 paste -w
231 wp
232
233 paste -ws
234 wP
235
236 quickmark-save
237 m
238
239 set-cmd-text -s :quickmark-load
240 b
241
242 set-cmd-text -s :quickmark-load -t
243 B
244
245 set-cmd-text :quickmark-load -w
246 wb
247
248 save
249 sf
250
251 set-cmd-text -s :set
252 ss
253
254 set-cmd-text -s :set -t
255 sl
256
257 set-cmd-text -s :set keybind
258 sk
259
260 zoom-out
261 -
262
263 zoom-in
264 +
265
266 zoom
267 =
268
269 navigate prev
270 [[
271
272 navigate next
273 ]]
274
275 navigate prev -t
276 {{
277
278 navigate next -t
279 }}
280
281 navigate up
282 gu
283
284 navigate up -t
285 gU
286
287 navigate increment
288 <Ctrl-A>
289
290 navigate decrement
291 <Ctrl-X>
292
293 inspector
294 wi
295
296 download
297 gd
298
299 download-cancel
300 ad
301
302 view-source
303 gf
304
305 tab-focus last
306 <Ctrl-Tab>
307
308 enter-mode passthrough
309 <Ctrl-V>
310
311 quit
312 <Ctrl-Q>
313
314 scroll-page 0 1
315 <Ctrl-F>
316
317 scroll-page 0 -1
318 <Ctrl-B>
319
320 scroll-page 0 0.5
321 <Ctrl-D>
322
323 scroll-page 0 -0.5
324 <Ctrl-U>
325
326 tab-focus 1
327 <Alt-1>
328
329 tab-focus 2
330 <Alt-2>
331
332 tab-focus 3
333 <Alt-3>
334
335 tab-focus 4
336 <Alt-4>
337
338 tab-focus 5
339 <Alt-5>
340
341 tab-focus 6
342 <Alt-6>
343
344 tab-focus 7
345 <Alt-7>
346
347 tab-focus 8
348 <Alt-8>
349
350 tab-focus 9
351 <Alt-9>
352
353 home
354 <Ctrl-h>
355
356 stop
357 <Ctrl-s>
358
359 print
360 <Ctrl-Alt-p>
361
362 open qute:settings
363 Ss
364
365 clear-keychain ;; search
366 <Escape>
367
368 tab-only
369 co
370
371 hint all tab-fg
372 ;f
373
374 enter-mode caret
375 v
376
377 yank -d
378 yd
379
380 yank -ds
381 yD
382
383 bookmark-add
384 M
385
386 set-cmd-text -s :bookmark-load
387 gb
388
389 set-cmd-text -s :bookmark-load -t
390 gB
391
392 set-cmd-text -s :bookmark-load -w
393 wB
394
395 download-remove --all
396 cd
397
398 follow-selected
399 <Return>
400 <Ctrl-M>
401 <Ctrl-J>
402 <Shift-Return>
403 <Enter>
404 <Shift-Enter>
405
406 follow-selected -t
407 <Ctrl-Return>
408 <Ctrl-Enter>
409
410 [insert]
411 # Keybindings for insert mode.
412 # Since normal keypresses are passed through, only special keys are
413 # supported in this mode.
414 # Useful hidden commands to map in this section:
415 # * `open-editor`: Open a texteditor with the focused field.
416
417 open-editor
418 <Ctrl-E>
419
420 [hint]
421 # Keybindings for hint mode.
422 # Since normal keypresses are passed through, only special keys are
423 # supported in this mode.
424 # Useful hidden commands to map in this section:
425 # * `follow-hint`: Follow the currently selected hint.
426
427 follow-hint
428 <Return>
429
430 hint --rapid links tab-bg
431 <Ctrl-R>
432
433 hint links
434 <Ctrl-F>
435
436 hint all tab-bg
437 <Ctrl-B>
438
439 [command]
440 # Keybindings for command mode.
441 # Since normal keypresses are passed through, only special keys are
442 # supported in this mode.
443 # Useful hidden commands to map in this section:
444 # * `command-history-prev`: Switch to previous command in history.
445 # * `command-history-next`: Switch to next command in history.
446 # * `completion-item-prev`: Select previous item in completion.
447 # * `completion-item-next`: Select next item in completion.
448 # * `command-accept`: Execute the command currently in the commandline.
449
450 command-history-prev
451 <Ctrl-P>
452
453 command-history-next
454 <Ctrl-N>
455
456 completion-item-prev
457 <Shift-Tab>
458 <Up>
459
460 completion-item-next
461 <Tab>
462 <Down>
463
464 command-accept
465 <Return>
466 <Ctrl-J>
467 <Shift-Return>
468
469 completion-item-del
470 <Ctrl-D>
471
472 [prompt]
473 # Keybindings for prompts in the status line.
474 # You can bind normal keys in this mode, but they will be only active
475 # when a yes/no-prompt is asked. For other prompt modes, you can only
476 # bind special keys.
477 # Useful hidden commands to map in this section:
478 # * `prompt-accept`: Confirm the entered value.
479 # * `prompt-yes`: Answer yes to a yes/no question.
480 # * `prompt-no`: Answer no to a yes/no question.
481
482 prompt-accept
483 <Return>
484 <Ctrl-J>
485 <Shift-Return>
486
487 prompt-yes
488 y
489
490 prompt-no
491 n
492
493 [command,prompt]
494
495 rl-backward-char
496 <Ctrl-B>
497
498 rl-forward-char
499 <Ctrl-F>
500
501 rl-backward-word
502 <Alt-B>
503
504 rl-forward-word
505 <Alt-F>
506
507 rl-beginning-of-line
508 <Ctrl-A>
509
510 rl-end-of-line
511 <Ctrl-E>
512
513 rl-unix-line-discard
514 <Ctrl-U>
515
516 rl-kill-line
517 <Ctrl-K>
518
519 rl-kill-word
520 <Alt-D>
521
522 rl-unix-word-rubout
523 <Ctrl-W>
524
525 rl-yank
526 <Ctrl-Y>
527
528 rl-delete-char
529 <Ctrl-?>
530
531 rl-backward-delete-char
532 <Ctrl-H>
533
534 [caret]
535
536 toggle-selection
537 v
538 <Space>
539
540 drop-selection
541 <Ctrl-Space>
542
543 enter-mode normal
544 c
545
546 move-to-next-line
547 j
548
549 move-to-prev-line
550 k
551
552 move-to-next-char
553 l
554
555 move-to-prev-char
556 h
557
558 move-to-end-of-word
559 e
560
561 move-to-next-word
562 w
563
564 move-to-prev-word
565 b
566
567 move-to-start-of-next-block
568 ]
569
570 move-to-start-of-prev-block
571 [
572
573 move-to-end-of-next-block
574 }
575
576 move-to-end-of-prev-block
577 {
578
579 move-to-start-of-line
580 0
581
582 move-to-end-of-line
583 $
584
585 move-to-start-of-document
586 gg
587
588 move-to-end-of-document
589 G
590
591 yank-selected -p
592 Y
593
594 yank-selected
595 y
596 <Return>
597 <Ctrl-M>
598 <Ctrl-J>
599 <Shift-Return>
600 <Enter>
601 <Shift-Enter>
602
603 scroll left
604 H
605
606 scroll down
607 J
608
609 scroll up
610 K
611
612 scroll right
613 L
614