From 1698643bac0738a2703e47a8b65b8076834750b2 Mon Sep 17 00:00:00 2001 From: Phantop Date: Wed, 9 Oct 2024 21:37:35 -0400 Subject: [PATCH] qute: remove arista config --- qutebrowser/arista.py | 23 ----------------------- qutebrowser/config.py | 8 ++------ 2 files changed, 2 insertions(+), 29 deletions(-) delete mode 100644 qutebrowser/arista.py diff --git a/qutebrowser/arista.py b/qutebrowser/arista.py deleted file mode 100644 index 2b20f67..0000000 --- a/qutebrowser/arista.py +++ /dev/null @@ -1,23 +0,0 @@ -c.url.searchengines['a'] = 'http://aid/{}' -c.url.searchengines['aid'] = c.url.searchengines['a'] -c.url.searchengines['bb'] = 'http://bb/{}' -c.url.searchengines['gcs'] = 'cloudsearch.google.com/cloudsearch?={}' -c.url.searchengines['go'] = 'http://go/{}' -c.url.searchengines['grok'] = 'http://opengrok/source/search?project=eos-trunk&full={}' -c.url.searchengines['group'] = 'http://groups/{}' -c.url.searchengines['nav'] = 'tacnav.infra.corp.arista.io/tacnav?version=eos-trunk&targets={}' - -search = { - 'a': 'aid', - 'b': 'bb', - 'e': 'go', - 'tn': 'nav', - 'z': 'grok', - '': 'grok', -} -for a, b in search.items(): - config.bind(a, ':cmd-set-text -s :open ' + b) - config.bind(a.upper(), ':cmd-set-text -s :open -t ' + b) - -c.fonts.default_size = '13pt' -c.url.default_page = 'http://go/cal' diff --git a/qutebrowser/config.py b/qutebrowser/config.py index 535b630..75d20e1 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -3,12 +3,8 @@ import platform config.load_autoconfig(False) config.source('adblock.py') config.source('bindings.py') +config.source('redirects.py') config.source('search.py') +config.source('sites.py') config.source('theme.py') config.source('ui.py') - -if platform.system() != 'Darwin': - config.source('redirects.py') - config.source('sites.py') -else: - config.source('arista.py')