]> git.rmz.io Git - dotfiles.git/blobdiff - qutebrowser/keys.conf
xdg: add user-dirs.dirs
[dotfiles.git] / qutebrowser / keys.conf
index d8d8c04fc121dbc51dc7225336ad94592a7d64d0..534a729a9da45c689566b7974179a3acb43aad4b 100644 (file)
@@ -1,6 +1,6 @@
 # vim: ft=conf
 #
 # vim: ft=conf
 #
-# In this config file, qutebrowser's keybindings are configured.
+# In this config file, qutebrowser's key bindings are configured.
 # The format looks like this:
 #
 # [keymode]
 # The format looks like this:
 #
 # [keymode]
@@ -13,8 +13,8 @@
 # All blank lines and lines starting with '#' are ignored.
 # Inline-comments are not permitted.
 #
 # 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 keybinding should be
-# active. If keymode starts with !, the keybinding is active in all modes
+# 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 `<`...`>`.
 # except the listed modes.
 #
 # For special keys (can't be part of a keychain), enclose them in `<`...`>`.
 #  * Shift:   `Shift`
 #
 # For simple keys (no `<>`-signs), a capital letter means the key is pressed
 #  * 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 explicitely add
+# with Shift. For special keys (with `<>`-signs), you need to explicitly add
 # `Shift-` to match a key pressed with shift.  You can bind multiple commands
 # by separating them with `;;`.
 # `Shift-` to match a key pressed with shift.  You can bind multiple commands
 # by separating them with `;;`.
+#
+# Note that default keybindings are always bound, and need to be explicitly
+# unbound if you wish to remove them:
+#
+# <unbound>
+#   keychain
+#   keychain2
+#   ...
 
 [!normal]
 
 leave-mode
 
 [!normal]
 
 leave-mode
-    <Escape>
-    <Ctrl-[>
+    <escape>
+    <ctrl-[>
 
 [normal]
 # Keybindings for normal mode.
 
 
 [normal]
 # Keybindings for normal mode.
 
-set-cmd-text ":open "
+clear-keychain ;; search
+    <escape>
+
+set-cmd-text -s :open
     o
 
     o
 
-set-cmd-text ":open {url}"
+set-cmd-text :open {url}
     go
 
     go
 
-set-cmd-text ":open -t "
+set-cmd-text -s :open -t
     O
 
     O
 
-set-cmd-text ":open -t {url}"
+set-cmd-text :open -t {url}
     gO
 
     gO
 
-set-cmd-text ":open -b "
+set-cmd-text -s :open -b
     xo
 
     xo
 
-set-cmd-text ":open -b {url}"
+set-cmd-text :open -b {url}
     xO
 
     xO
 
-set-cmd-text ":open -w "
+set-cmd-text -s :open -w
     wo
 
     wo
 
-set-cmd-text ":open -w {url}"
+set-cmd-text :open -w {url}
     wO
 
     wO
 
-open -t about:blank
-    <Ctrl-T>
+open -t
+    ga
+    <ctrl-t>
 
 tab-close
     d
 
 tab-close
     d
-    <Ctrl-W>
+    <ctrl-w>
 
 tab-close -o
     D
 
 
 tab-close -o
     D
 
-tab-only
-    co
-
 tab-focus
 tab-focus
-    T
+    K
+    gt
 
 tab-move
     gm
 
 tab-move
     gm
@@ -88,12 +98,8 @@ tab-move -
 tab-move +
     gr
 
 tab-move +
     gr
 
-tab-next
-    J
-    gt
-
 tab-prev
 tab-prev
-    K
+    J
     gT
 
 tab-clone
     gT
 
 tab-clone
@@ -107,7 +113,7 @@ reload -f
 
 back
     H
 
 back
     H
-    <Backspace>
+    <backspace>
 
 back -t
     th
 
 back -t
     th
@@ -125,7 +131,7 @@ forward -w
     wl
 
 fullscreen
     wl
 
 fullscreen
-    <F11>
+    <f11>
 
 hint
     f
 
 hint
     f
@@ -139,6 +145,9 @@ hint all window
 hint all tab-bg
     ;b
 
 hint all tab-bg
     ;b
 
+hint all tab-fg
+    ;f
+
 hint all hover
     ;h
 
 hint all hover
     ;h
 
@@ -151,13 +160,13 @@ hint images tab
 hint images tab-bg
     .i
 
 hint images tab-bg
     .i
 
-hint links fill ":open {hint-url}"
+hint links fill :open {hint-url}
     ;o
 
     ;o
 
-hint links fill ":open -t {hint-url}"
+hint links fill :open -t {hint-url}
     ;O
 
     ;O
 
-hint links fill ":open -b {hint-url}"
+hint links fill :open -b {hint-url}
     .o
 
 hint links yank
     .o
 
 hint links yank
@@ -166,30 +175,30 @@ hint links yank
 hint links yank-primary
     ;Y
 
 hint links yank-primary
     ;Y
 
-hint links rapid
+hint --rapid links tab-bg
     ;r
 
     ;r
 
-hint links rapid-win
+hint --rapid links window
     ;R
 
 hint links download
     ;d
 
     ;R
 
 hint links download
     ;d
 
-scroll -50 0
+scroll left
     h
 
     h
 
-scroll 0 50
+scroll down
     j
 
     j
 
-scroll 0 -50
+scroll up
     k
 
     k
 
-scroll 50 0
+scroll right
     l
 
 undo
     u
     l
 
 undo
     u
-    <Ctrl-Shift-T>
+    <ctrl-shift-t>
 
 scroll-perc 0
     gg
 
 scroll-perc 0
     gg
@@ -206,58 +215,79 @@ search-prev
 enter-mode insert
     i
 
 enter-mode insert
     i
 
+enter-mode caret
+    v
+
 yank
     yy
 
 yank -s
     yY
 
 yank
     yy
 
 yank -s
     yY
 
-yank -t
+yank title
     yt
 
     yt
 
-yank -ts
+yank title -s
     yT
 
     yT
 
-paste
+yank domain
+    yd
+
+yank domain -s
+    yD
+
+open -- {clipboard}
     pp
 
     pp
 
-paste -s
+open -- {primary}
     pP
 
     pP
 
-paste -t
+open -t -- {clipboard}
     Pp
 
     Pp
 
-paste -ts
+open -t -- {primary}
     PP
 
     PP
 
-paste -w
+open -w -- {clipboard}
     wp
 
     wp
 
-paste -ws
+open -w -- {primary}
     wP
 
 quickmark-save
     m
 
     wP
 
 quickmark-save
     m
 
-set-cmd-text ":quickmark-load "
+set-cmd-text -s :quickmark-load
     b
 
     b
 
-set-cmd-text ":quickmark-load -t "
+set-cmd-text -s :quickmark-load -t
     B
 
     B
 
-set-cmd-text ":quickmark-load -w"
+set-cmd-text -s :quickmark-load -w
     wb
 
     wb
 
+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
+
 save
     sf
 
 save
     sf
 
-set-cmd-text ":set "
+set-cmd-text -s :set
     ss
 
     ss
 
-set-cmd-text ":set -t "
+set-cmd-text -s :set -t
     sl
 
     sl
 
-set-cmd-text ":set keybind "
+set-cmd-text -s :set keybind
     sk
 
 zoom-out
     sk
 
 zoom-out
@@ -288,92 +318,147 @@ navigate up -t
     gU
 
 navigate increment
     gU
 
 navigate increment
-    <Ctrl-A>
+    <ctrl-a>
 
 navigate decrement
 
 navigate decrement
-    <Ctrl-X>
+    <ctrl-x>
 
 inspector
     wi
 
 
 inspector
     wi
 
-download-page
+download
     gd
 
     gd
 
-cancel-download
+download-cancel
     ad
 
     ad
 
+download-clear
+    cd
+
 view-source
     gf
 
 tab-focus last
 view-source
     gf
 
 tab-focus last
-    <Ctrl-Tab>
+    <ctrl-tab>
 
 enter-mode passthrough
 
 enter-mode passthrough
-    <Ctrl-V>
+    <ctrl-v>
 
 quit
 
 quit
-    <Ctrl-Q>
+    <ctrl-q>
 
 scroll-page 0 1
 
 scroll-page 0 1
-    <Ctrl-F>
+    <ctrl-f>
 
 scroll-page 0 -1
 
 scroll-page 0 -1
-    <Ctrl-B>
+    <ctrl-b>
 
 scroll-page 0 0.5
 
 scroll-page 0 0.5
-    <Ctrl-D>
+    <ctrl-d>
 
 scroll-page 0 -0.5
 
 scroll-page 0 -0.5
-    <Ctrl-U>
+    <ctrl-u>
 
 tab-focus 1
 
 tab-focus 1
-    <Alt-1>
+    <alt-1>
 
 tab-focus 2
 
 tab-focus 2
-    <Alt-2>
+    <alt-2>
 
 tab-focus 3
 
 tab-focus 3
-    <Alt-3>
+    <alt-3>
 
 tab-focus 4
 
 tab-focus 4
-    <Alt-4>
+    <alt-4>
 
 tab-focus 5
 
 tab-focus 5
-    <Alt-5>
+    <alt-5>
 
 tab-focus 6
 
 tab-focus 6
-    <Alt-6>
+    <alt-6>
 
 tab-focus 7
 
 tab-focus 7
-    <Alt-7>
+    <alt-7>
 
 tab-focus 8
 
 tab-focus 8
-    <Alt-8>
+    <alt-8>
 
 tab-focus 9
 
 tab-focus 9
-    <Alt-9>
+    <alt-9>
 
 home
 
 home
-    <Ctrl-h>
+    <ctrl-h>
 
 stop
 
 stop
-    <Ctrl-s>
+    <ctrl-s>
 
 print
 
 print
-    <Ctrl-Alt-p>
+    <ctrl-alt-p>
 
 open qute:settings
     Ss
 
 
 open qute:settings
     Ss
 
+follow-selected
+    <return>
+    <ctrl-m>
+    <ctrl-j>
+    <shift-return>
+    <enter>
+    <shift-enter>
+
+follow-selected -t
+    <ctrl-return>
+    <ctrl-enter>
+
+tab-only
+    co
+
+open -w
+    <ctrl-n>
+
+enter-mode set_mark
+    `
+
+enter-mode jump_mark
+    '
+
+yank pretty-url
+    yp
+
+yank pretty-url -s
+    yP
+
+hint inputs
+    ;t
+
+repeat-command
+    .
+
+set-cmd-text /
+    /
+
+set-cmd-text ?
+    ?
+
+set-cmd-text :
+    :
+
+tab-next
+    <ctrl-pgdown>
+
 [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.
 [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.
+#  * `paste-primary`: Paste primary selection at cursor position.
 
 open-editor
 
 open-editor
-    <Ctrl-E>
+    <ctrl-e>
+
+insert-text {primary}
+    <shift-ins>
 
 [hint]
 # Keybindings for hint mode.
 
 [hint]
 # Keybindings for hint mode.
@@ -383,12 +468,21 @@ open-editor
 #  * `follow-hint`: Follow the currently selected hint.
 
 follow-hint
 #  * `follow-hint`: Follow the currently selected hint.
 
 follow-hint
-    <Return>
+    <return>
+    <ctrl-m>
+    <ctrl-j>
+    <shift-return>
+    <enter>
+    <shift-enter>
 
 
-[passthrough]
-# Keybindings for passthrough mode.
-# Since normal keypresses are passed through, only special keys are
-# supported in this mode.
+hint --rapid links tab-bg
+    <ctrl-r>
+
+hint links
+    <ctrl-f>
+
+hint all tab-bg
+    <ctrl-b>
 
 [command]
 # Keybindings for command mode.
 
 [command]
 # Keybindings for command mode.
@@ -397,28 +491,39 @@ follow-hint
 # 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.
 # 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.
-#  * `completion-item-prev`: Select previous item in completion.
-#  * `completion-item-next`: Select next item in completion.
+#  * `completion-item-focus`: Select another item in completion.
 #  * `command-accept`: Execute the command currently in the commandline.
 
 command-history-prev
 #  * `command-accept`: Execute the command currently in the commandline.
 
 command-history-prev
-    <Ctrl-P>
+    <ctrl-p>
 
 command-history-next
 
 command-history-next
-    <Ctrl-N>
+    <ctrl-n>
+
+completion-item-focus prev
+    <shift-tab>
+    <up>
 
 
-completion-item-prev
-    <Shift-Tab>
-    <Up>
+completion-item-focus next
+    <tab>
+    <down>
 
 
-completion-item-next
-    <Tab>
-    <Down>
+completion-item-del
+    <ctrl-d>
 
 command-accept
 
 command-accept
-    <Return>
-    <Ctrl-J>
-    <Shift-Return>
+    <return>
+    <ctrl-m>
+    <ctrl-j>
+    <shift-return>
+    <enter>
+    <shift-enter>
+
+completion-item-focus next-category
+    <ctrl-tab>
+
+completion-item-focus prev-category
+    <ctrl-shift-tab>
 
 [prompt]
 # Keybindings for prompts in the status line.
 
 [prompt]
 # Keybindings for prompts in the status line.
@@ -431,9 +536,12 @@ command-accept
 #  * `prompt-no`: Answer no to a yes/no question.
 
 prompt-accept
 #  * `prompt-no`: Answer no to a yes/no question.
 
 prompt-accept
-    <Return>
-    <Ctrl-J>
-    <Shift-Return>
+    <return>
+    <ctrl-m>
+    <ctrl-j>
+    <shift-return>
+    <enter>
+    <shift-enter>
 
 prompt-yes
     y
 
 prompt-yes
     y
@@ -441,44 +549,131 @@ prompt-yes
 prompt-no
     n
 
 prompt-no
     n
 
+prompt-open-download
+    <ctrl-x>
+
 [command,prompt]
 
 rl-backward-char
 [command,prompt]
 
 rl-backward-char
-    <Ctrl-B>
+    <ctrl-b>
 
 rl-forward-char
 
 rl-forward-char
-    <Ctrl-F>
+    <ctrl-f>
 
 rl-backward-word
 
 rl-backward-word
-    <Alt-B>
+    <alt-b>
 
 rl-forward-word
 
 rl-forward-word
-    <Alt-F>
+    <alt-f>
 
 rl-beginning-of-line
 
 rl-beginning-of-line
-    <Ctrl-A>
+    <ctrl-a>
 
 rl-end-of-line
 
 rl-end-of-line
-    <Ctrl-E>
+    <ctrl-e>
 
 rl-unix-line-discard
 
 rl-unix-line-discard
-    <Ctrl-U>
+    <ctrl-u>
 
 rl-kill-line
 
 rl-kill-line
-    <Ctrl-K>
+    <ctrl-k>
 
 rl-kill-word
 
 rl-kill-word
-    <Alt-D>
+    <alt-d>
 
 rl-unix-word-rubout
 
 rl-unix-word-rubout
-    <Ctrl-W>
+    <ctrl-w>
+
+rl-backward-kill-word
+    <alt-backspace>
 
 rl-yank
 
 rl-yank
-    <Ctrl-Y>
+    <ctrl-y>
 
 rl-delete-char
 
 rl-delete-char
-    <Ctrl-?>
+    <ctrl-?>
 
 rl-backward-delete-char
 
 rl-backward-delete-char
-    <Ctrl-H>
+    <ctrl-h>
+
+[caret]
+
+toggle-selection
+    v
+    <space>
+
+drop-selection
+    <ctrl-space>
+
+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
+
+yank selection -s
+    Y
+
+yank selection
+    y
+    <return>
+    <ctrl-m>
+    <ctrl-j>
+    <shift-return>
+    <enter>
+    <shift-enter>
+
+scroll left
+    H
+
+scroll down
+    J
+
+scroll up
+    K
+
+scroll right
+    L