From 233afd9821e080e661cd7eb2a8fdb67669da9115 Mon Sep 17 00:00:00 2001 From: surtur Date: Wed, 6 Apr 2022 15:37:26 +0200 Subject: [PATCH] qutebrowser: explicitly set search engines --- .config/qutebrowser/config.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index ba42935..a9ee57f 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -217,6 +217,30 @@ c.tabs.width = '25%' # Type: Int c.tabs.min_width = -1 +# Search engines which can be used via the address bar. Maps a search +# engine name (such as `DEFAULT`, or `ddg`) to a URL with a `{}` +# placeholder. The placeholder will be replaced by the search term, use +# `{{` and `}}` for literal `{`/`}` braces. The following further +# placeholds are defined to configure how special characters in the +# search terms are replaced by safe characters (called 'quoting'): * +# `{}` and `{semiquoted}` quote everything except slashes; this is the +# most sensible choice for almost all search engines (for the search +# term `slash/and&` this placeholder expands to `slash/and%26amp`). +# * `{quoted}` quotes all characters (for `slash/and&` this +# placeholder expands to `slash%2Fand%26amp`). * `{unquoted}` quotes +# nothing (for `slash/and&` this placeholder expands to +# `slash/and&`). * `{0}` means the same as `{}`, but can be used +# multiple times. The search engine named `DEFAULT` is used when +# `url.auto_search` is turned on and something else than a URL was +# entered to be opened. Other search engines can be used by prepending +# the search engine name to the search term, e.g. `:open google +# qutebrowser`. +# Type: Dict +c.url.searchengines = { + 'DEFAULT': 'https://duckduckgo.com/?q={}', + 'wa': 'https://wiki.archlinux.org/?search={}' +} + # Hide the window decoration. This setting requires a restart on # Wayland. # Type: Bool