]> git.rmz.io Git - dotfiles.git/blobdiff - qutebrowser/config.py
qutebrowser: enable clipboard for gitlab and github
[dotfiles.git] / qutebrowser / config.py
index be791d6628bb75670f949c4b20ee004f1274f290..fc19e169bb72409d2a6d6bcada0acd713774df71 100644 (file)
@@ -108,7 +108,7 @@ c.auto_save.session = True
 ## key. Note that when a key is bound (via `bindings.default` or
 ## `bindings.commands`), the mapping is ignored.
 ## Type: Dict
-# c.bindings.key_mappings = {'<Ctrl-[>': '<Escape>', '<Ctrl-6>': '<Ctrl-^>', '<Ctrl-M>': '<Return>', '<Ctrl-J>': '<Return>', '<Ctrl-I>': '<Tab>', '<Shift-Return>': '<Return>', '<Enter>': '<Return>', '<Shift-Enter>': '<Return>', '<Ctrl-Enter>': '<Ctrl-Return>'}
+c.bindings.key_mappings = {'<Ctrl-6>': '<Ctrl-^>', '<Ctrl-M>': '<Return>', '<Ctrl-J>': '<Return>', '<Ctrl-I>': '<Tab>', '<Shift-Return>': '<Return>', '<Enter>': '<Return>', '<Shift-Enter>': '<Return>', '<Ctrl-Enter>': '<Ctrl-Return>'}
 
 ## When to show a changelog after qutebrowser was upgraded.
 ## Type: String
@@ -527,7 +527,9 @@ c.content.headers.accept_language = 'en-UK;q=1.0, en;q=0.9, de;q=0.7, fr;q=0.7,
 ##   - none: Disable access to clipboard.
 ##   - access: Allow reading from and writing to the clipboard.
 ##   - access-paste: Allow accessing the clipboard and pasting clipboard content.
-# c.content.javascript.clipboard = 'none'
+c.content.javascript.clipboard = 'none'
+config.set('content.javascript.clipboard', 'access', '*://*.gitlab.com/*')
+config.set('content.javascript.clipboard', 'access', '*://*.github.com/*')
 
 ## Enable JavaScript.
 ## Type: Bool