From 95b295745b22e56e11e147b3e6595b2200be2e12 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 10 Feb 2014 07:07:32 +0100 Subject: [PATCH] Rename __default__ searchengine to DEFAULT --- qutebrowser/utils/config.py | 2 +- qutebrowser/utils/url.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qutebrowser/utils/config.py b/qutebrowser/utils/config.py index cce833938..de6084a53 100644 --- a/qutebrowser/utils/config.py +++ b/qutebrowser/utils/config.py @@ -44,13 +44,13 @@ addressbar_dns_lookup = false auto_search = true [searchengines] +DEFAULT = ${duckduckgo} duckduckgo = https://duckduckgo.com/?q={} ddg = ${duckduckgo} google = https://encrypted.google.com/search?q={} g = ${google} wikipedia = http://en.wikipedia.org/w/index.php?title=Special:Search&search={} wiki = ${wikipedia} -__default__ = ${duckduckgo} [keybind] o = open diff --git a/qutebrowser/utils/url.py b/qutebrowser/utils/url.py index 62a4f729f..b40e7a9a9 100644 --- a/qutebrowser/utils/url.py +++ b/qutebrowser/utils/url.py @@ -59,7 +59,7 @@ def _get_search_url(txt): term = r.sub('', txt) logging.debug('engine {}, term "{}"'.format(engine, term)) else: - template = config.config.get('searchengines', '__default__', + template = config.config.get('searchengines', 'DEFAULT', fallback=None) term = txt logging.debug('engine: default, term "{}"'.format(txt))