Rename __default__ searchengine to DEFAULT
This commit is contained in:
parent
1af78272bb
commit
95b295745b
@ -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
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user