From 40a1f904a3857fa84669e64e8d33ef978746e707 Mon Sep 17 00:00:00 2001 From: finga Date: Tue, 29 May 2018 09:01:27 +0200 Subject: [PATCH] add more keybindings - still wip --- .config/qutebrowser/config.py | 104 +++++++++++++++++++++------------- 1 file changed, 64 insertions(+), 40 deletions(-) diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index b0fd352..0527e25 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -926,11 +926,11 @@ c.editor.command = ['em', '{file}'] ## Enter insert mode if an editable element is clicked. ## Type: Bool -c.input.insert_mode.auto_enter = False +# c.input.insert_mode.auto_enter = False ## Leave insert mode if a non-editable element is clicked. ## Type: Bool -c.input.insert_mode.auto_leave = False +# c.input.insert_mode.auto_leave = False ## Automatically enter insert mode if an editable element is focused ## after loading the page. @@ -1411,21 +1411,29 @@ config.bind('', 'set-cmd-text :') # config.bind(';r', 'hint --rapid links tab-bg') # config.bind(';t', 'hint inputs') # config.bind(';y', 'hint links yank') -# config.bind('', 'tab-focus 1')xs -# config.bind('', 'tab-focus 2') -# config.bind('', 'tab-focus 3') -# config.bind('', 'tab-focus 4') -# config.bind('', 'tab-focus 5') -# config.bind('', 'tab-focus 6') -# config.bind('', 'tab-focus 7') -# config.bind('', 'tab-focus 8') -# config.bind('', 'tab-focus -1') +config.bind('', 'tab-focus 1') +config.bind('', 'tab-focus 2') +config.bind('', 'tab-focus 3') +config.bind('', 'tab-focus 4') +config.bind('', 'tab-focus 5') +config.bind('', 'tab-focus 6') +config.bind('', 'tab-focus 7') +config.bind('', 'tab-focus 8') +config.bind('', 'tab-focus 9') # config.bind('', 'navigate increment') # config.bind('', 'print') -# config.bind('', 'scroll-page 0 -1') +config.bind('', 'scroll-page 0 -1') +config.bind('', 'scroll-page 0 -1') +config.bind('', 'scroll-to-perc 0') +# config.bind('', 'scroll-to-perc 0') +# config.bind('', 'scroll-to-perc 0') # config.bind('', 'scroll-page 0 0.5') # config.bind('', 'reload -f') -# config.bind('', 'scroll-page 0 1') +config.bind('', 'scroll-page 0 1') +config.bind('', 'scroll-page 0 1') +config.bind('', 'scroll-to-perc 100') +# config.bind('>', 'scroll-to-perc 100') +# config.bind('', 'scroll-to-perc 100') # config.bind('', 'open -w') # config.bind('', 'tab-next') # config.bind('', 'tab-prev') @@ -1439,18 +1447,24 @@ config.bind('', 'set-cmd-text :') # config.bind('', 'scroll-page 0 -0.5') # config.bind('', 'enter-mode passthrough') # config.bind('', 'tab-close') +config.bind('k', 'tab-close') +# config.bind('k', 'set-cmd-text -s :tab-close') # config.bind('', 'navigate decrement') # config.bind('', 'tab-focus last') # config.bind('', 'home') # config.bind('', 'tab-pin') # config.bind('', 'stop') config.bind('', 'stop') -# config.bind('', 'clear-keychain ;; search ;; fullscreen --leave') -# config.bind('', 'fullscreen') -# config.bind('', 'reload') -# config.bind('', 'follow-selected') -# config.bind('', 'back') -# config.bind('', 'forward') +config.bind('', 'clear-keychain ;; search ;; fullscreen --leave') +config.bind('', 'fullscreen') +config.bind('', 'reload') +config.bind('r', 'reload') +config.bind('', 'follow-selected') +config.bind('', 'back') +config.bind('b', 'back') +config.bind('l', 'back') +config.bind('', 'forward') +config.bind('f', 'forward') # config.bind('=', 'zoom') # config.bind('?', 'set-cmd-text ?') # config.bind('@', 'run-macro') @@ -1473,6 +1487,7 @@ config.bind('', 'stop') # config.bind('Sq', 'open qute://bookmarks') # config.bind('Ss', 'open qute://settings') # config.bind('T', 'tab-focus') +config.bind('b', 'set-cmd-text -s :tab-focus') # config.bind('ZQ', 'quit') # config.bind('ZZ', 'quit --save') # config.bind('[[', 'navigate prev') @@ -1489,6 +1504,7 @@ config.bind('', 'stop') # config.bind('gB', 'set-cmd-text -s :bookmark-load -t') # config.bind('gC', 'tab-clone') # config.bind('gO', 'set-cmd-text :open -t -r {url:pretty}') +config.bind('', 'set-cmd-text -s :open -t') # config.bind('gU', 'navigate up -t') # config.bind('g^', 'tab-focus 1') # config.bind('ga', 'open -t') @@ -1499,14 +1515,19 @@ config.bind('', 'stop') # config.bind('gl', 'tab-move -') # config.bind('gm', 'tab-move') # config.bind('go', 'set-cmd-text :open {url:pretty}') +config.bind('g', 'set-cmd-text :open {url:pretty}') # config.bind('gr', 'tab-move +') # config.bind('gt', 'set-cmd-text -s :buffer') # config.bind('gu', 'navigate up') # config.bind('h', 'scroll left') +config.bind('', 'scroll left') # config.bind('i', 'enter-mode insert') # config.bind('j', 'scroll down') +config.bind('', 'scroll down') # config.bind('k', 'scroll up') +config.bind('', 'scroll up') # config.bind('l', 'scroll right') +config.bind('', 'scroll right') # config.bind('m', 'quickmark-save') # config.bind('n', 'search-next') # config.bind('o', 'set-cmd-text -s :open') @@ -1533,6 +1554,7 @@ config.bind('', 'stop') # config.bind('tsh', 'config-cycle -p -t -u *://{url:host}/* content.javascript.enabled ;; reload') # config.bind('tsu', 'config-cycle -p -t -u {url} content.javascript.enabled ;; reload') # config.bind('u', 'undo') +config.bind('', 'undo') # config.bind('v', 'enter-mode caret') # config.bind('wB', 'set-cmd-text -s :bookmark-load -w') # config.bind('wO', 'set-cmd-text :open -w {url:pretty}') @@ -1587,34 +1609,35 @@ config.bind('', 'stop') # config.bind('}', 'move-to-end-of-next-block', mode='caret') ## Bindings for command mode -# config.bind('', 'rl-backward-word', mode='command') -# config.bind('', 'rl-backward-kill-word', mode='command') -# config.bind('', 'rl-kill-word', mode='command') -# config.bind('', 'rl-forward-word', mode='command') +config.bind('', 'rl-backward-word', mode='command') +config.bind('', 'rl-backward-kill-word', mode='command') +config.bind('', 'rl-kill-word', mode='command') +config.bind('', 'rl-forward-word', mode='command') # config.bind('', 'rl-delete-char', mode='command') -# config.bind('', 'rl-beginning-of-line', mode='command') -# config.bind('', 'rl-backward-char', mode='command') +config.bind('', 'rl-beginning-of-line', mode='command') +config.bind('', 'rl-backward-char', mode='command') # config.bind('', 'completion-item-yank', mode='command') # config.bind('', 'completion-item-del', mode='command') -# config.bind('', 'rl-end-of-line', mode='command') -# config.bind('', 'rl-forward-char', mode='command') +config.bind('', 'rl-end-of-line', mode='command') +config.bind('', 'rl-forward-char', mode='command') # config.bind('', 'rl-backward-delete-char', mode='command') -# config.bind('', 'rl-kill-line', mode='command') -# config.bind('', 'command-history-next', mode='command') -# config.bind('', 'command-history-prev', mode='command') +config.bind('', 'rl-kill-line', mode='command') +config.bind('', 'command-history-next', mode='command') +config.bind('', 'command-history-prev', mode='command') # config.bind('', 'command-accept --rapid', mode='command') # config.bind('', 'completion-item-yank --sel', mode='command') # config.bind('', 'completion-item-focus prev-category', mode='command') # config.bind('', 'completion-item-focus next-category', mode='command') # config.bind('', 'rl-unix-line-discard', mode='command') # config.bind('', 'rl-unix-word-rubout', mode='command') -# config.bind('', 'rl-yank', mode='command') +config.bind('', 'rl-yank', mode='command') # config.bind('', 'completion-item-focus --history next', mode='command') -# config.bind('', 'leave-mode', mode='command') -# config.bind('', 'command-accept', mode='command') +config.bind('', 'leave-mode', mode='command') +config.bind('', 'leave-mode', mode='command') +config.bind('', 'command-accept', mode='command') # config.bind('', 'completion-item-del', mode='command') # config.bind('', 'completion-item-focus prev', mode='command') -# config.bind('', 'completion-item-focus next', mode='command') +config.bind('', 'completion-item-focus next', mode='command') # config.bind('', 'completion-item-focus --history prev', mode='command') ## Bindings for hint mode @@ -1651,8 +1674,9 @@ config.bind('', 'stop') # config.bind('', 'prompt-open-download', mode='prompt') # config.bind('', 'rl-yank', mode='prompt') # config.bind('', 'prompt-item-focus next', mode='prompt') -# config.bind('', 'leave-mode', mode='prompt') -# config.bind('', 'prompt-accept', mode='prompt') +config.bind('', 'leave-mode', mode='prompt') +config.bind('', 'leave-mode', mode='prompt') +config.bind('', 'prompt-accept', mode='prompt') # config.bind('', 'prompt-item-focus prev', mode='prompt') # config.bind('', 'prompt-item-focus next', mode='prompt') # config.bind('', 'prompt-item-focus prev', mode='prompt') @@ -1663,7 +1687,7 @@ config.bind('', 'stop') ## Bindings for yesno mode # config.bind('', 'prompt-yank --sel', mode='yesno') # config.bind('', 'prompt-yank', mode='yesno') -# config.bind('', 'leave-mode', mode='yesno') -# config.bind('', 'prompt-accept', mode='yesno') -# config.bind('n', 'prompt-accept no', mode='yesno') -# config.bind('y', 'prompt-accept yes', mode='yesno') +config.bind('', 'leave-mode', mode='yesno') +config.bind('', 'prompt-accept', mode='yesno') +config.bind('n', 'prompt-accept no', mode='yesno') +config.bind('y', 'prompt-accept yes', mode='yesno')