From 7048f924ecb614267f9afa9ba5dfa90363b29f89 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Sat, 19 Dec 2015 17:54:07 +0100 Subject: [PATCH] update qutebrowser and use word hints --- config/qutebrowser/keys.conf | 10 +++- config/qutebrowser/qutebrowser.conf | 78 +++++++++++++++++------------ 2 files changed, 56 insertions(+), 32 deletions(-) diff --git a/config/qutebrowser/keys.conf b/config/qutebrowser/keys.conf index ff86de2..d3b707e 100644 --- a/config/qutebrowser/keys.conf +++ b/config/qutebrowser/keys.conf @@ -29,6 +29,14 @@ # 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 `;;`. +# +# Note that default keybindings are always bound, and need to be explicitly +# unbound if you wish to remove them: +# +# +# keychain +# keychain2 +# ... [!normal] @@ -324,7 +332,7 @@ download download-cancel ad -download-remove --all +download-clear cd view-source diff --git a/config/qutebrowser/qutebrowser.conf b/config/qutebrowser/qutebrowser.conf index 324e5ba..5ff714d 100644 --- a/config/qutebrowser/qutebrowser.conf +++ b/config/qutebrowser/qutebrowser.conf @@ -27,7 +27,7 @@ [general] # General/miscellaneous options. # -# ignore-case: +# ignore-case (IgnoreCase): # Whether to find text on a page case-insensitively. # true: Search case-insensitively # false: Search case-sensitively @@ -48,7 +48,7 @@ # `about:blank` for a blank page. # Default: ${startpage} # -# auto-search: +# auto-search (AutoSearch): # Whether to start a search when something else than a URL is # entered. # naive: Use simple/naive check. @@ -67,8 +67,9 @@ # # editor (ShellCommand): # The editor (and arguments) to use for the `open-editor` command. -# Use `{}` for the filename. The value gets split like in a shell, -# so you can use `"` or `'` to quote arguments. +# The arguments get split like in a shell, so you can use `"` or `'` +# to quote them. +# `{}` gets replaced by the filename of the file to be edited. # Default: gvim -f "{}" # # editor-encoding (Encoding): @@ -115,7 +116,7 @@ # used. # Default: # -# new-instance-open-target: +# new-instance-open-target (String): # How to open links in an existing instance if a new one is # launched. # tab: Open a new tab in the existing window and activate the @@ -129,22 +130,24 @@ # window: Open in a new window. # Default: tab # -# log-javascript-console (Bool): -# Whether to log javascript console messages. -# Valid values: true, false -# Default: false +# log-javascript-console (String): +# How to log javascript console messages. +# none: Don't log messages. +# debug: Log messages with debug level. +# info: Log messages with info level. +# Default: debug # # save-session (Bool): # Whether to always save the open pages. # Valid values: true, false # Default: false # -# session-default-name: +# session-default-name (SessionName): # The name of the session to save by default, or empty for the last # loaded session. # Default: # -# url-incdec-segments (URLSegmentList): +# url-incdec-segments (FlagList): # The URL segments where `:navigate increment/decrement` will search # for a number. # Valid values: host, path, query, anchor @@ -165,7 +168,7 @@ xss-auditing = false site-specific-quirks = true default-encoding = new-instance-open-target = tab -log-javascript-console = false +log-javascript-console = none save-session = false session-default-name = url-incdec-segments = path,query @@ -196,7 +199,7 @@ url-incdec-segments = path,query # Valid values: true, false # Default: false # -# confirm-quit: +# confirm-quit (ConfirmQuit): # Whether to confirm quitting the application. # always: Always show a confirmation. # multiple-tabs: Show a confirmation if multiple tabs are @@ -222,7 +225,7 @@ url-incdec-segments = path,query # Valid values: true, false # Default: false # -# user-stylesheet: +# user-stylesheet (UserStyleSheet): # User stylesheet to use (absolute filename, filename relative to # the config directory or CSS string). Will expand environment # variables. @@ -309,7 +312,7 @@ hide-wayland-decoration = false # Value to send in the `accept-language` header. # Default: en-US,en # -# referer-header (Referer): +# referer-header (String): # Send the Referer header # always: Always send. # never: Never send; this is not recommended, as some sites may @@ -318,11 +321,11 @@ hide-wayland-decoration = false # protect your privacy, but shouldn't break any sites. # Default: same-domain # -# user-agent: +# user-agent (UserAgent): # User agent to send. Empty to send the default. # Default: # -# proxy: +# proxy (Proxy): # The proxy to use. # In addition to the listed values, you can use a `socks://...` or # `http://...` URL. @@ -361,7 +364,7 @@ dns-prefetch = true # Valid values: true, false # Default: true # -# download-path-suggestion: +# download-path-suggestion (String): # What to display in the download filename input. # path: Show only the download path. # filename: Show only download filename. @@ -451,7 +454,7 @@ scrollbar-padding = 2 # Valid values: true, false # Default: false # -# forward-unbound-keys: +# forward-unbound-keys (String): # Whether to forward unbound keys to the webview in normal mode. # all: Forward all unbound keys. # auto: Forward unbound non-alphanumeric keys. @@ -503,14 +506,14 @@ mouse-zoom-divider = 512 # Valid values: true, false # Default: false # -# select-on-remove: +# select-on-remove (SelectOnRemove): # Which tab to select when the focused tab is removed. # left: Select the tab on the left. # right: Select the tab on the right. # previous: Select the previously selected tab. # Default: right # -# new-tab-position: +# new-tab-position (NewTabPosition): # How new tabs are positioned. # left: On the left of the current tab. # right: On the right of the current tab. @@ -518,7 +521,7 @@ mouse-zoom-divider = 512 # last: At the right end. # Default: right # -# new-tab-position-explicit: +# new-tab-position-explicit (NewTabPosition): # How new tabs opened explicitly are positioned. # left: On the left of the current tab. # right: On the right of the current tab. @@ -526,7 +529,7 @@ mouse-zoom-divider = 512 # last: At the right end. # Default: last # -# last-close: +# last-close (String): # Behavior when the last tab is closed. # ignore: Don't do anything. # blank: Load a blank page. @@ -535,7 +538,7 @@ mouse-zoom-divider = 512 # close: Close the window. # Default: ignore # -# show (TabBarShow): +# show (String): # When to show the tab bar # always: Always show the tab bar. # never: Always hide the tab bar. @@ -558,7 +561,7 @@ mouse-zoom-divider = 512 # Valid values: true, false # Default: true # -# close-mouse-button: +# close-mouse-button (String): # On which mouse button to close tabs. # right: Close tabs on right-click. # middle: Close tabs on middle-click. @@ -602,6 +605,11 @@ mouse-zoom-divider = 512 # * `{scroll_pos}`: The page scroll position. # Default: {index}: {title} # +# title-alignment (TextAlignment): +# Alignment of the text inside of tabs +# Valid values: left, right, center +# Default: left +# # mousewheel-tab-switching (Bool): # Switch between tabs using the mouse wheel. # Valid values: true, false @@ -630,6 +638,7 @@ width = 20% indicator-width = 3 tabs-are-windows = false title-format = {index}: {title} +title-alignment = left mousewheel-tab-switching = true padding = 0,0,5,5 indicator-padding = 2,2,0,4 @@ -802,7 +811,7 @@ cache-size = 52428800 # Valid values: true, false # Default: true # -# cookies-accept: +# cookies-accept (String): # Control which cookies to accept. # all: Accept all cookies. # no-3rdparty: Accept cookies from the same origin only. @@ -870,10 +879,12 @@ host-blocking-whitelist = piwik.org # Opacity for hints. # Default: 0.7 # -# mode: +# mode (String): # Mode to use for hints. # number: Use numeric hints. # letter: Use the chars in the hints -> chars setting. +# word: Use hints words based on the html elements and the extra +# words. # Default: letter # # chars (String): @@ -895,6 +906,10 @@ host-blocking-whitelist = piwik.org # Valid values: true, false # Default: false # +# dictionary (File): +# The dictionary file to be used by the word hints. +# Default: /usr/share/dict/words +# # auto-follow (Bool): # Whether to auto-follow a hint if there's only one left. # Valid values: true, false @@ -910,11 +925,12 @@ host-blocking-whitelist = piwik.org # Default: \bprev(ious)?\b,\bback\b,\bolder\b,\b[<←≪]\b,\b(<<|«)\b border = 1px solid #E3BE23 opacity = 0.7 -mode = letter +mode = words chars = asdfghjkl min-chars = 1 scatter = true uppercase = false +dictionary = /usr/share/dict/cracklib-small auto-follow = true next-regexes = \bnext\b,\bmore\b,\bnewer\b,\b[>→≫]\b,\b(>>|»)\b prev-regexes = \bprev(ious)?\b,\bback\b,\bolder\b,\b[<←≪]\b,\b(<<|«)\b @@ -1151,7 +1167,7 @@ goto = open # Color for the tab indicator on errors.. # Default: #ff0000 # -# tabs.indicator.system: +# tabs.indicator.system (ColorSystem): # Color gradient interpolation system for the tab indicator. # rgb: Interpolate in the RGB color system. # hsv: Interpolate in the HSV color system. @@ -1192,7 +1208,7 @@ goto = open # Color gradient stop for download backgrounds. # Default: #00aa00 # -# downloads.fg.system: +# downloads.fg.system (ColorSystem): # Color gradient interpolation system for download text. # rgb: Interpolate in the RGB color system. # hsv: Interpolate in the HSV color system. @@ -1200,7 +1216,7 @@ goto = open # none: Don't show a gradient. # Default: rgb # -# downloads.bg.system: +# downloads.bg.system (ColorSystem): # Color gradient interpolation system for download backgrounds. # rgb: Interpolate in the RGB color system. # hsv: Interpolate in the HSV color system.