configuration/config/qutebrowser/keys.conf

711 lines
8.5 KiB
Plaintext
Raw Normal View History

2015-07-02 09:40:14 +02:00
# vim: ft=conf
#
# In this config file, qutebrowser's key bindings are configured.
# The format looks like this:
#
# [keymode]
#
# command
# keychain
# keychain2
# ...
#
# All blank lines and lines starting with '#' are ignored.
# Inline-comments are not permitted.
#
# keymode is a comma separated list of modes in which the key binding should be
# active. If keymode starts with !, the key binding is active in all modes
# except the listed modes.
#
# For special keys (can't be part of a keychain), enclose them in `<`...`>`.
# For modifiers, you can use either `-` or `+` as delimiters, and these names:
#
# * Control: `Control`, `Ctrl`
# * Meta: `Meta`, `Windows`, `Mod4`
# * Alt: `Alt`, `Mod1`
# * Shift: `Shift`
#
# For simple keys (no `<>`-signs), a capital letter means the key is pressed
# with Shift. For special keys (with `<>`-signs), you need to explicitly add
2016-09-09 17:16:15 +02:00
# `Shift-` to match a key pressed with shift.
2015-12-19 17:54:07 +01:00
#
# Note that default keybindings are always bound, and need to be explicitly
# unbound if you wish to remove them:
#
# <unbound>
# keychain
# keychain2
# ...
2015-07-02 09:40:14 +02:00
[!normal]
2016-08-28 09:15:28 +02:00
leave-mode
2016-06-12 12:00:56 +02:00
<escape>
<ctrl-[>
2015-07-02 09:40:14 +02:00
[normal]
# Keybindings for normal mode.
2017-02-16 11:50:16 +01:00
clear-keychain ;; search ;; fullscreen --leave
2016-06-12 12:00:56 +02:00
<escape>
2015-07-02 09:40:14 +02:00
2015-10-27 09:28:57 +01:00
set-cmd-text -s :goto
2015-07-02 09:40:14 +02:00
o
2015-10-27 09:28:57 +01:00
set-cmd-text -s :open
gh
set-cmd-text :goto {url}
2015-07-02 09:40:14 +02:00
go
2015-10-27 09:28:57 +01:00
set-cmd-text -s :goto -t
2015-07-02 09:40:14 +02:00
O
2015-10-27 09:28:57 +01:00
set-cmd-text -s :open -t
gH
set-cmd-text :goto -t {url}
2015-07-02 09:40:14 +02:00
gO
set-cmd-text -s :open -b
xo
set-cmd-text :open -b {url}
xO
set-cmd-text -s :open -w
wo
set-cmd-text :open -w {url}
wO
open -t
ga
2016-06-12 12:00:56 +02:00
<ctrl-t>
2015-07-02 09:40:14 +02:00
tab-close
d
2016-06-12 12:00:56 +02:00
<ctrl-w>
2015-07-02 09:40:14 +02:00
tab-close -o
D
tab-only
co
tab-focus
T
tab-move
gm
tab-move -
gl
tab-move +
gr
tab-next
J
gt
tab-prev
K
gT
tab-clone
gC
reload
r
reload -f
R
back
H
2016-06-12 12:00:56 +02:00
<backspace>
2015-07-02 09:40:14 +02:00
back -t
th
back -w
wh
forward
L
forward -t
tl
forward -w
wl
fullscreen
2016-06-12 12:00:56 +02:00
<f11>
2015-07-02 09:40:14 +02:00
hint
f
hint all tab
F
hint all window
wf
hint all tab-bg
;b
2015-09-09 18:23:58 +02:00
hint all tab-fg
;f
2015-07-02 09:40:14 +02:00
hint all hover
;h
hint images
;i
hint images tab
;I
hint images tab-bg
2016-07-14 23:48:14 +02:00
,i
2015-07-02 09:40:14 +02:00
2016-08-08 12:03:18 +02:00
hint links fill :open {hint-url}
2015-07-02 09:40:14 +02:00
;o
2016-08-08 12:03:18 +02:00
hint links fill :open -t {hint-url}
2015-07-02 09:40:14 +02:00
;O
2016-08-08 12:03:18 +02:00
hint links fill :open -b {hint-url}
2016-07-14 23:48:14 +02:00
,o
2015-07-02 09:40:14 +02:00
hint links yank
;y
hint links yank-primary
;Y
hint --rapid links tab-bg
;r
hint --rapid links window
;R
hint links download
;d
scroll left
h
scroll down
j
scroll up
k
scroll right
l
undo
u
2016-06-12 12:00:56 +02:00
<ctrl-shift-t>
2015-07-02 09:40:14 +02:00
scroll-perc 0
gg
scroll-perc
G
search-next
n
search-prev
N
enter-mode insert
i
2015-09-09 18:23:58 +02:00
enter-mode caret
v
2015-07-02 09:40:14 +02:00
yank
yy
yank -s
yY
2016-08-28 09:15:28 +02:00
yank title
2015-07-02 09:40:14 +02:00
yt
2016-08-28 09:15:28 +02:00
yank title -s
2015-07-02 09:40:14 +02:00
yT
2016-08-28 09:15:28 +02:00
yank domain
2015-09-09 18:23:58 +02:00
yd
2016-08-28 09:15:28 +02:00
yank domain -s
2015-09-09 18:23:58 +02:00
yD
2016-08-28 09:15:28 +02:00
open -- {clipboard}
2015-07-02 09:40:14 +02:00
pp
2016-08-28 09:15:28 +02:00
open -- {primary}
2015-07-02 09:40:14 +02:00
pP
2016-08-28 09:15:28 +02:00
open -t -- {clipboard}
2015-07-02 09:40:14 +02:00
Pp
2016-08-28 09:15:28 +02:00
open -t -- {primary}
2015-07-02 09:40:14 +02:00
PP
2016-08-28 09:15:28 +02:00
open -w -- {clipboard}
2015-07-02 09:40:14 +02:00
wp
2016-08-28 09:15:28 +02:00
open -w -- {primary}
2015-07-02 09:40:14 +02:00
wP
quickmark-save
m
set-cmd-text -s :quickmark-load
b
set-cmd-text -s :quickmark-load -t
B
set-cmd-text -s :quickmark-load -w
wb
save
sf
set-cmd-text -s :set
ss
set-cmd-text -s :set -t
sl
2016-09-09 17:16:15 +02:00
set-cmd-text -s :bind
2015-07-02 09:40:14 +02:00
sk
zoom-out
-
zoom-in
+
zoom
=
navigate prev
[[
navigate next
]]
navigate prev -t
{{
navigate next -t
}}
navigate up
gu
navigate up -t
gU
navigate increment
2016-06-12 12:00:56 +02:00
<ctrl-a>
2015-07-02 09:40:14 +02:00
navigate decrement
2016-06-12 12:00:56 +02:00
<ctrl-x>
2015-07-02 09:40:14 +02:00
inspector
wi
download
gd
download-cancel
ad
2015-12-19 17:54:07 +01:00
download-clear
2015-07-02 09:40:14 +02:00
cd
view-source
gf
tab-focus last
2016-06-12 12:00:56 +02:00
<ctrl-tab>
2015-07-02 09:40:14 +02:00
enter-mode passthrough
2016-06-12 12:00:56 +02:00
<ctrl-v>
2015-07-02 09:40:14 +02:00
quit
2016-06-12 12:00:56 +02:00
<ctrl-q>
2015-07-02 09:40:14 +02:00
scroll-page 0 1
2016-06-12 12:00:56 +02:00
<ctrl-f>
2015-07-02 09:40:14 +02:00
scroll-page 0 -1
2016-06-12 12:00:56 +02:00
<ctrl-b>
2015-07-02 09:40:14 +02:00
scroll-page 0 0.5
2016-06-12 12:00:56 +02:00
<ctrl-d>
2015-07-02 09:40:14 +02:00
scroll-page 0 -0.5
2016-06-12 12:00:56 +02:00
<ctrl-u>
2015-07-02 09:40:14 +02:00
tab-focus 1
2016-06-12 12:00:56 +02:00
<alt-1>
2015-07-02 09:40:14 +02:00
tab-focus 2
2016-06-12 12:00:56 +02:00
<alt-2>
2015-07-02 09:40:14 +02:00
tab-focus 3
2016-06-12 12:00:56 +02:00
<alt-3>
2015-07-02 09:40:14 +02:00
tab-focus 4
2016-06-12 12:00:56 +02:00
<alt-4>
2015-07-02 09:40:14 +02:00
tab-focus 5
2016-06-12 12:00:56 +02:00
<alt-5>
2015-07-02 09:40:14 +02:00
tab-focus 6
2016-06-12 12:00:56 +02:00
<alt-6>
2015-07-02 09:40:14 +02:00
tab-focus 7
2016-06-12 12:00:56 +02:00
<alt-7>
2015-07-02 09:40:14 +02:00
tab-focus 8
2016-06-12 12:00:56 +02:00
<alt-8>
2015-07-02 09:40:14 +02:00
tab-focus 9
2016-06-12 12:00:56 +02:00
<alt-9>
2015-07-02 09:40:14 +02:00
home
2016-06-12 12:00:56 +02:00
<ctrl-h>
2015-07-02 09:40:14 +02:00
stop
2016-06-12 12:00:56 +02:00
<ctrl-s>
2015-07-02 09:40:14 +02:00
print
2016-06-12 12:00:56 +02:00
<ctrl-alt-p>
2015-07-02 09:40:14 +02:00
open qute:settings
Ss
follow-selected
2016-06-12 12:00:56 +02:00
<return>
<ctrl-m>
<ctrl-j>
<shift-return>
<enter>
<shift-enter>
2015-07-02 09:40:14 +02:00
follow-selected -t
2016-06-12 12:00:56 +02:00
<ctrl-return>
<ctrl-enter>
2015-07-02 09:40:14 +02:00
2015-10-08 15:36:24 +02:00
bookmark-add
M
set-cmd-text -s :bookmark-load
gb
set-cmd-text -s :bookmark-load -t
gB
set-cmd-text -s :bookmark-load -w
wB
2016-06-28 13:28:29 +02:00
spawn mpv {url}
2016-01-04 19:37:13 +01:00
x
2016-06-28 13:28:29 +02:00
hint links spawn mpv {hint-url}
2016-01-04 19:37:13 +01:00
;x
2016-04-29 09:47:12 +02:00
open -w
2016-06-12 12:00:56 +02:00
<ctrl-n>
2016-04-29 09:47:12 +02:00
enter-mode set_mark
`
enter-mode jump_mark
'
2016-08-28 09:15:28 +02:00
yank pretty-url
2016-04-29 09:47:12 +02:00
yp
2016-08-28 09:15:28 +02:00
yank pretty-url -s
2016-04-29 09:47:12 +02:00
yP
2016-07-14 23:48:14 +02:00
hint inputs
;t
repeat-command
.
2016-08-28 09:15:28 +02:00
set-cmd-text /
/
set-cmd-text ?
?
set-cmd-text :
:
enter-mode insert ;; jseval --quiet var inputs = document.getElementsByTagName("input"); for(var i = 0; i < inputs.length; i++) { var hidden = false; for(var j = 0; j < inputs[i].attributes.length; j++) { hidden = hidden || inputs[i].attributes[j].value.includes("hidden"); }; if(!hidden) { inputs[i].focus(); break; } }
z
2016-11-16 11:15:03 +01:00
record-macro
q
run-macro
@
2017-03-11 01:31:19 +01:00
wq
ZZ
2015-07-02 09:40:14 +02:00
[insert]
# Keybindings for insert mode.
# Since normal keypresses are passed through, only special keys are
# supported in this mode.
# Useful hidden commands to map in this section:
# * `open-editor`: Open a texteditor with the focused field.
2016-02-08 17:28:11 +01:00
# * `paste-primary`: Paste primary selection at cursor position.
2015-07-02 09:40:14 +02:00
open-editor
2016-06-12 12:00:56 +02:00
<ctrl-e>
2015-07-02 09:40:14 +02:00
2016-08-28 09:15:28 +02:00
insert-text {primary}
2016-06-12 12:00:56 +02:00
<shift-ins>
2016-02-08 17:28:11 +01:00
2015-07-02 09:40:14 +02:00
[hint]
# Keybindings for hint mode.
# Since normal keypresses are passed through, only special keys are
# supported in this mode.
# Useful hidden commands to map in this section:
# * `follow-hint`: Follow the currently selected hint.
follow-hint
2016-06-12 12:00:56 +02:00
<return>
<ctrl-m>
<ctrl-j>
<shift-return>
<enter>
<shift-enter>
2015-07-02 09:40:14 +02:00
hint --rapid links tab-bg
2016-06-12 12:00:56 +02:00
<ctrl-r>
2015-07-02 09:40:14 +02:00
hint links
2016-06-12 12:00:56 +02:00
<ctrl-f>
2015-07-02 09:40:14 +02:00
hint all tab-bg
2016-06-12 12:00:56 +02:00
<ctrl-b>
2015-07-02 09:40:14 +02:00
[command]
# Keybindings for command mode.
# Since normal keypresses are passed through, only special keys are
# supported in this mode.
# Useful hidden commands to map in this section:
# * `command-history-prev`: Switch to previous command in history.
# * `command-history-next`: Switch to next command in history.
2016-08-28 09:15:28 +02:00
# * `completion-item-focus`: Select another item in completion.
2015-07-02 09:40:14 +02:00
# * `command-accept`: Execute the command currently in the commandline.
command-history-prev
2016-06-12 12:00:56 +02:00
<ctrl-p>
2015-07-02 09:40:14 +02:00
command-history-next
2016-06-12 12:00:56 +02:00
<ctrl-n>
2015-07-02 09:40:14 +02:00
2016-08-28 09:15:28 +02:00
completion-item-focus prev
2016-06-12 12:00:56 +02:00
<shift-tab>
<up>
2015-07-02 09:40:14 +02:00
2016-08-28 09:15:28 +02:00
completion-item-focus next
2016-06-12 12:00:56 +02:00
<tab>
<down>
2015-07-02 09:40:14 +02:00
command-accept
2016-06-12 12:00:56 +02:00
<return>
<ctrl-m>
<ctrl-j>
<shift-return>
<enter>
<shift-enter>
2015-07-02 09:40:14 +02:00
2015-10-08 15:36:24 +02:00
completion-item-del
2016-06-12 12:00:56 +02:00
<ctrl-d>
2015-10-08 15:36:24 +02:00
2016-08-28 09:15:28 +02:00
completion-item-focus next-category
<ctrl-tab>
completion-item-focus prev-category
<ctrl-shift-tab>
2015-07-02 09:40:14 +02:00
[prompt]
# Keybindings for prompts in the status line.
# You can bind normal keys in this mode, but they will be only active
# when a yes/no-prompt is asked. For other prompt modes, you can only
# bind special keys.
# Useful hidden commands to map in this section:
# * `prompt-accept`: Confirm the entered value.
2016-09-09 17:16:15 +02:00
# * `prompt-accept yes`: Answer yes to a yes/no question.
# * `prompt-accept no`: Answer no to a yes/no question.
2015-07-02 09:40:14 +02:00
prompt-accept
2016-06-12 12:00:56 +02:00
<return>
<ctrl-m>
<ctrl-j>
<shift-return>
<enter>
<shift-enter>
2015-07-02 09:40:14 +02:00
2016-09-09 17:16:15 +02:00
prompt-accept yes
2015-07-02 09:40:14 +02:00
y
2016-09-09 17:16:15 +02:00
prompt-accept no
2015-07-02 09:40:14 +02:00
n
2016-08-08 12:03:18 +02:00
prompt-open-download
<ctrl-x>
2016-11-03 10:28:20 +01:00
prompt-item-focus prev
<shift-tab>
<up>
prompt-item-focus next
<tab>
<down>
2015-07-02 09:40:14 +02:00
[command,prompt]
rl-backward-char
2016-06-12 12:00:56 +02:00
<ctrl-b>
2015-07-02 09:40:14 +02:00
rl-forward-char
2016-06-12 12:00:56 +02:00
<ctrl-f>
2015-07-02 09:40:14 +02:00
rl-backward-word
2016-06-12 12:00:56 +02:00
<alt-b>
2015-07-02 09:40:14 +02:00
rl-forward-word
2016-06-12 12:00:56 +02:00
<alt-f>
2015-07-02 09:40:14 +02:00
rl-beginning-of-line
2016-06-12 12:00:56 +02:00
<ctrl-a>
2015-07-02 09:40:14 +02:00
rl-end-of-line
2016-06-12 12:00:56 +02:00
<ctrl-e>
2015-07-02 09:40:14 +02:00
rl-unix-line-discard
2016-06-12 12:00:56 +02:00
<ctrl-u>
2015-07-02 09:40:14 +02:00
rl-kill-line
2016-06-12 12:00:56 +02:00
<ctrl-k>
2015-07-02 09:40:14 +02:00
rl-kill-word
2016-06-12 12:00:56 +02:00
<alt-d>
2015-07-02 09:40:14 +02:00
rl-unix-word-rubout
2016-06-12 12:00:56 +02:00
<ctrl-w>
2016-08-08 12:03:18 +02:00
rl-backward-kill-word
2016-06-12 12:00:56 +02:00
<alt-backspace>
2015-07-02 09:40:14 +02:00
rl-yank
2016-06-12 12:00:56 +02:00
<ctrl-y>
2015-07-02 09:40:14 +02:00
rl-delete-char
2016-06-12 12:00:56 +02:00
<ctrl-?>
2015-07-02 09:40:14 +02:00
rl-backward-delete-char
2016-06-12 12:00:56 +02:00
<ctrl-h>
2015-07-02 09:40:14 +02:00
[caret]
toggle-selection
v
2016-06-12 12:00:56 +02:00
<space>
2015-07-02 09:40:14 +02:00
drop-selection
2016-06-12 12:00:56 +02:00
<ctrl-space>
2015-07-02 09:40:14 +02:00
enter-mode normal
c
move-to-next-line
j
move-to-prev-line
k
move-to-next-char
l
move-to-prev-char
h
move-to-end-of-word
e
move-to-next-word
w
move-to-prev-word
b
move-to-start-of-next-block
]
move-to-start-of-prev-block
[
move-to-end-of-next-block
}
move-to-end-of-prev-block
{
move-to-start-of-line
0
move-to-end-of-line
$
move-to-start-of-document
gg
move-to-end-of-document
G
2016-08-28 09:15:28 +02:00
yank selection -s
2015-07-02 09:40:14 +02:00
Y
2016-08-28 09:15:28 +02:00
yank selection
2015-07-02 09:40:14 +02:00
y
2016-06-12 12:00:56 +02:00
<return>
<ctrl-m>
<ctrl-j>
<shift-return>
<enter>
<shift-enter>
2015-07-02 09:40:14 +02:00
scroll left
H
scroll down
J
scroll up
K
scroll right
L