]> git.rmz.io Git - dotfiles.git/blobdiff - qutebrowser/config.py
qutebrowser: add annotation support in config file
[dotfiles.git] / qutebrowser / config.py
index 0d8bd9964f6ee8a7cbb91867a71d943ca11a2ebe..e9685ffe64f4ff18747f055a0b189eae127867d8 100644 (file)
@@ -1,3 +1,4 @@
+# noqa: D100
 ## Autogenerated config.py
 ##
 ## NOTE: config.py is intended for advanced users who are comfortable
 ##   qute://help/configuring.html
 ##   qute://help/settings.html
 
+from qutebrowser.config.configfiles import ConfigAPI
+from qutebrowser.config.config import ConfigContainer
+
+c: ConfigContainer = c      # noqa: F821 pylint: disable=E0602,C0103
+config: ConfigAPI = config  # noqa: F821 pylint: disable=E0602,C0103
+
 def in_terminal(cmd: list):
     """Wraps cmd to be run in the default TERMINAL, as set by environment.
 
@@ -39,7 +46,10 @@ try:
             message.info("Redirecting to " + url.toString())
             info.redirect(url)
 
-    interceptor.register(intercept)
+    #FIXME: trying this disabled for a bit to test if qb crashes less
+    #2022-08-16 enabling it again (and off again)
+    # yeah crashed immediately
+    # interceptor.register(intercept)
 except ImportError:
     pass
 
@@ -1802,6 +1812,8 @@ c.url.searchengines = {'DEFAULT':        'https://duckduckgo.com/?t=chakra&q={}'
                        'h':              'https://hoogle.haskell.org/?hoogle={}',
                        'fpp/slack':      'https://focalpointpositioning.slack.com/messages/{}',
                        'fpp/confluence': 'https://fppnt.atlassian.net/wiki/search?text={}',
+                       'evk':            'https://gitlab.com/search?&scope=issues&group_id=13301433&search={}',
+                       'dev':            'https://devdocs.io/#q={}',
                       }
 
 ## Page(s) to open at the start.