]> git.rmz.io Git - dotfiles.git/blobdiff - qutebrowser/keys.conf
zsh: use pinentry-curses when connected over ssh
[dotfiles.git] / qutebrowser / keys.conf
index d8d8c04fc121dbc51dc7225336ad94592a7d64d0..4edf369499d26cc1c1025bda67b77817f5c6a15d 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 "
+clear-keychain ;; search
+    <Escape>
+
+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
+    ga
     <Ctrl-T>
 
 tab-close
@@ -73,11 +77,9 @@ tab-close
 tab-close -o
     D
 
-tab-only
-    co
-
 tab-focus
-    T
+    K
+    gt
 
 tab-move
     gm
@@ -88,12 +90,8 @@ tab-move -
 tab-move +
     gr
 
-tab-next
-    J
-    gt
-
 tab-prev
-    K
+    J
     gT
 
 tab-clone
@@ -139,6 +137,9 @@ hint all window
 hint all tab-bg
     ;b
 
+hint all tab-fg
+    ;f
+
 hint all hover
     ;h
 
@@ -166,25 +167,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
@@ -206,6 +207,9 @@ search-prev
 enter-mode insert
     i
 
+enter-mode caret
+    v
+
 yank
     yy
 
@@ -218,6 +222,12 @@ yank -t
 yank -ts
     yT
 
+yank -d
+    yd
+
+yank -ds
+    yD
+
 paste
     pp
 
@@ -239,25 +249,37 @@ 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 -s :quickmark-load -w
     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
 
-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
@@ -296,12 +318,15 @@ navigate decrement
 inspector
     wi
 
-download-page
+download
     gd
 
-cancel-download
+download-cancel
     ad
 
+download-clear
+    cd
+
 view-source
     gf
 
@@ -365,6 +390,21 @@ print
 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
+
 [insert]
 # Keybindings for insert mode.
 # Since normal keypresses are passed through, only special keys are
@@ -384,11 +424,20 @@ open-editor
 
 follow-hint
     <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.
@@ -415,10 +464,16 @@ completion-item-next
     <Tab>
     <Down>
 
+completion-item-del
+    <Ctrl-D>
+
 command-accept
     <Return>
+    <Ctrl-M>
     <Ctrl-J>
     <Shift-Return>
+    <Enter>
+    <Shift-Enter>
 
 [prompt]
 # Keybindings for prompts in the status line.
@@ -432,8 +487,11 @@ command-accept
 
 prompt-accept
     <Return>
+    <Ctrl-M>
     <Ctrl-J>
     <Shift-Return>
+    <Enter>
+    <Shift-Enter>
 
 prompt-yes
     y
@@ -472,6 +530,7 @@ rl-kill-word
 
 rl-unix-word-rubout
     <Ctrl-W>
+    <Alt-Backspace>
 
 rl-yank
     <Ctrl-Y>
@@ -482,3 +541,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
+