]> git.rmz.io Git - dotfiles.git/blobdiff - qutebrowser/config.py
qutebrowser: add annotation support in config file
[dotfiles.git] / qutebrowser / config.py
index 0d44d35c00a2a0169f8e4d05fe35191db8e9038a..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
 
@@ -668,7 +678,7 @@ config.set('content.notifications.enabled', True, '*://*.google.com/*')
 ## `:prompt-open-download --pdfjs` command (bound to `<Ctrl-p>` by
 ## default) can be used in the download prompt.
 ## Type: Bool
-# c.content.pdfjs = False
+c.content.pdfjs = True
 
 ## Allow websites to request persistent storage quota via
 ## `navigator.webkitPersistentStorage.requestQuota`.
@@ -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.