]> git.rmz.io Git - dotfiles.git/blobdiff - qutebrowser/keys.conf
vim: add bindings for quit-another-window
[dotfiles.git] / qutebrowser / keys.conf
index 4b7e613b00b1b730c23cf077555df460e0d66327..48334604167766dc67bca2c99af6518966e91698 100644 (file)
@@ -1,6 +1,6 @@
 # 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]
@@ -13,8 +13,8 @@
 # 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 `<`...`>`.
 #  * 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 `;;`.
 
 [!normal]
 
-leave-mode
+clear-keychain ;; leave-mode
     <Escape>
     <Ctrl-[>
 
 [normal]
 # Keybindings for normal mode.
 
-set-cmd-text ":open "
+set-cmd-text -s :open
     o
 
-set-cmd-text ":open {url}"
+set-cmd-text :open {url}
     go
 
-set-cmd-text ":open -t "
+set-cmd-text -s :open -t
     O
 
-set-cmd-text ":open -t {url}"
+set-cmd-text :open -t {url}
     gO
 
-set-cmd-text ":open -b "
+set-cmd-text -s :open -b
     xo
 
-set-cmd-text ":open -b {url}"
+set-cmd-text :open -b {url}
     xO
 
-set-cmd-text ":open -w "
+set-cmd-text -s :open -w
     wo
 
-set-cmd-text ":open -w {url}"
+set-cmd-text :open -w {url}
     wO
 
-open -t about:blank
+open -t
     <Ctrl-T>
 
 tab-close
@@ -163,25 +163,25 @@ hint links yank
 hint links yank-primary
     ;Y
 
-hint links rapid
+hint --rapid links tab-bg
     ;r
 
-hint links rapid-win
+hint --rapid links window
     ;R
 
 hint links download
     ;d
 
-scroll -50 0
+scroll left
     h
 
-scroll 0 50
+scroll down
     j
 
-scroll 0 -50
+scroll up
     k
 
-scroll 50 0
+scroll right
     l
 
 undo
@@ -236,25 +236,25 @@ paste -ws
 quickmark-save
     m
 
-set-cmd-text ":quickmark-load "
+set-cmd-text -s :quickmark-load
     b
 
-set-cmd-text ":quickmark-load -t "
+set-cmd-text -s :quickmark-load -t
     B
 
-set-cmd-text ":quickmark-load -w"
+set-cmd-text :quickmark-load -w
     wb
 
 save
     sf
 
-set-cmd-text ":set "
+set-cmd-text -s :set
     ss
 
-set-cmd-text ":set -t "
+set-cmd-text -s :set -t
     sl
 
-set-cmd-text ":set keybind "
+set-cmd-text -s :set keybind
     sk
 
 zoom-out
@@ -293,10 +293,10 @@ navigate decrement
 inspector
     wi
 
-download-page
+download
     gd
 
-cancel-download
+download-cancel
     ad
 
 view-source
@@ -362,6 +362,51 @@ print
 open qute:settings
     Ss
 
+clear-keychain ;; search
+    <Escape>
+
+tab-only
+    co
+
+hint all tab-fg
+    ;f
+
+enter-mode caret
+    v
+
+yank -d
+    yd
+
+yank -ds
+    yD
+
+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
+
+download-remove --all
+    cd
+
+follow-selected
+    <Return>
+    <Ctrl-M>
+    <Ctrl-J>
+    <Shift-Return>
+    <Enter>
+    <Shift-Enter>
+
+follow-selected -t
+    <Ctrl-Return>
+    <Ctrl-Enter>
+
 [insert]
 # Keybindings for insert mode.
 # Since normal keypresses are passed through, only special keys are
@@ -382,6 +427,15 @@ open-editor
 follow-hint
     <Return>
 
+hint --rapid links tab-bg
+    <Ctrl-R>
+
+hint links
+    <Ctrl-F>
+
+hint all tab-bg
+    <Ctrl-B>
+
 [command]
 # Keybindings for command mode.
 # Since normal keypresses are passed through, only special keys are
@@ -412,6 +466,9 @@ command-accept
     <Ctrl-J>
     <Shift-Return>
 
+completion-item-del
+    <Ctrl-D>
+
 [prompt]
 # Keybindings for prompts in the status line.
 # You can bind normal keys in this mode, but they will be only active
@@ -474,3 +531,84 @@ rl-delete-char
 rl-backward-delete-char
     <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-selected -p
+    Y
+
+yank-selected
+    y
+    <Return>
+    <Ctrl-M>
+    <Ctrl-J>
+    <Shift-Return>
+    <Enter>
+    <Shift-Enter>
+
+scroll left
+    H
+
+scroll down
+    J
+
+scroll up
+    K
+
+scroll right
+    L
+