From 5779744e786df6e08d2176457ac72872efeed0c2 Mon Sep 17 00:00:00 2001 From: finga Date: Sun, 3 Jun 2018 03:02:30 +0200 Subject: [PATCH] improve emacs feeling --- .config/qutebrowser/config.py | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index 0527e25..236655e 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -922,7 +922,7 @@ c.editor.command = ['em', '{file}'] ## - all: Forward all unbound keys. ## - auto: Forward unbound non-alphanumeric keys. ## - none: Don't forward any keys. -# c.input.forward_unbound_keys = 'auto' +c.input.forward_unbound_keys = 'all' ## Enter insert mode if an editable element is clicked. ## Type: Bool @@ -935,7 +935,7 @@ c.editor.command = ['em', '{file}'] ## Automatically enter insert mode if an editable element is focused ## after loading the page. ## Type: Bool -# c.input.insert_mode.auto_load = False +c.input.insert_mode.auto_load = True ## Switch to insert mode when clicking flash and other plugins. ## Type: Bool @@ -1354,7 +1354,7 @@ c.tabs.width = '12%' ## used by prepending the search engine name to the search term, e.g. ## `:open google qutebrowser`. ## Type: Dict -# c.url.searchengines = {'DEFAULT': 'https://duckduckgo.com/?q={}'} +c.url.searchengines = {'DEFAULT': 'https://duckduckgo.com/?q={}', 'g': 'https://www.google.com.ar/search?q={}'} ## Page(s) to open at the start. ## Type: List of FuzzyUrl, or FuzzyUrl @@ -1408,6 +1408,7 @@ config.bind('', 'set-cmd-text :') # config.bind(';h', 'hint all hover') # config.bind(';i', 'hint images') # config.bind(';o', 'hint links fill :open {hint-url}') +config.bind('f', 'hint links fill :open {hint-url}') # config.bind(';r', 'hint --rapid links tab-bg') # config.bind(';t', 'hint inputs') # config.bind(';y', 'hint links yank') @@ -1459,12 +1460,12 @@ config.bind('', 'clear-keychain ;; search ;; fullscreen --leave') config.bind('', 'fullscreen') config.bind('', 'reload') config.bind('r', 'reload') -config.bind('', 'follow-selected') +config.bind('', 'follow-selected ;; fake-key ') config.bind('', 'back') config.bind('b', 'back') config.bind('l', 'back') config.bind('', 'forward') -config.bind('f', 'forward') +config.bind('F', 'forward') # config.bind('=', 'zoom') # config.bind('?', 'set-cmd-text ?') # config.bind('@', 'run-macro') @@ -1515,7 +1516,7 @@ config.bind('', 'set-cmd-text -s :open -t') # 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('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') @@ -1531,6 +1532,7 @@ config.bind('', 'scroll right') # config.bind('m', 'quickmark-save') # config.bind('n', 'search-next') # config.bind('o', 'set-cmd-text -s :open') +config.bind('g', 'set-cmd-text -s :open') # config.bind('pP', 'open -- {primary}') # config.bind('pp', 'open -- {clipboard}') # config.bind('q', 'record-macro') @@ -1644,12 +1646,16 @@ config.bind('', 'completion-item-focus next', mode='command') # config.bind('', 'hint all tab-bg', mode='hint') # config.bind('', 'hint links', mode='hint') # config.bind('', 'hint --rapid links tab-bg', mode='hint') -# config.bind('', 'leave-mode', mode='hint') +config.bind('', 'leave-mode', mode='hint') +config.bind('', 'leave-mode', mode='hint') # config.bind('', 'follow-hint', mode='hint') ## Bindings for insert mode # config.bind('', 'open-editor', mode='insert') -# config.bind('', 'leave-mode', mode='insert') +config.bind('', mode='insert') +config.bind('', mode='insert') +config.bind('', 'leave-mode', mode='insert') +config.bind('', 'leave-mode', mode='insert') # config.bind('', 'insert-text {primary}', mode='insert') ## Bindings for passthrough mode