From 33f8cc39723a5c41b912ffe5f162c55c7a8cda11 Mon Sep 17 00:00:00 2001 From: finga Date: Sun, 7 Nov 2021 14:27:50 +0100 Subject: [PATCH] Adapt to new mode naming Adapt to new mode namings as modes are now prefixed instead of suffixed. --- .config/qutebrowser/config.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index 2ec5835..dcb3038 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -1606,7 +1606,7 @@ config.bind('', 'scroll-to-perc 100') # config.bind('', 'tab-focus last') # config.bind('', 'scroll-page 0 -0.5') # config.bind('', 'enter-mode passthrough') -config.bind('e', 'enter-mode passthrough') +config.bind('e', 'mode-enter passthrough') # config.bind('', 'tab-close') config.bind('k', 'tab-close') # config.bind('k', 'set-cmd-text -s :tab-close') @@ -1808,8 +1808,8 @@ config.bind('', 'undo') # config.bind('', 'rl-unix-word-rubout', 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('', 'leave-mode', mode='command') +config.bind('', 'mode-leave', mode='command') +config.bind('', 'mode-leave', mode='command') config.bind('', 'command-accept', mode='command') # config.bind('', 'completion-item-del', mode='command') # config.bind('', 'completion-item-focus prev', mode='command') @@ -1821,8 +1821,8 @@ config.bind('', 'undo') # 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('', 'mode-leave', mode='hint') +config.bind('', 'mode-leave', mode='hint') # config.bind('', 'follow-hint', mode='hint') ## Bindings for insert mode @@ -1837,14 +1837,14 @@ config.bind('', 'leave-mode', mode='hint') # config.bind('', 'rl-forward-char', mode='insert') # config.bind('', 'rl-kill-line', mode='insert') # config.bind('', 'rl-yank', mode='insert') -config.bind('', 'leave-mode', mode='insert') -config.bind('', 'leave-mode', mode='insert') +config.bind('', 'mode-leave', mode='insert') +config.bind('', 'mode-leave', mode='insert') # config.bind('', 'insert-text {primary}', mode='insert') ## Bindings for passthrough mode # config.bind('', 'leave-mode', mode='passthrough') -config.bind('', 'leave-mode', mode='passthrough') -config.bind('', 'leave-mode', mode='passthrough') +config.bind('', 'mode-leave', mode='passthrough') +config.bind('', 'mode-leave', mode='passthrough') ## Bindings for prompt mode # config.bind('', 'rl-backward-word', mode='prompt') @@ -1866,8 +1866,8 @@ config.bind('', 'leave-mode', mode='passthrough') # 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('', 'leave-mode', mode='prompt') +config.bind('', 'mode-leave', mode='prompt') +config.bind('', 'mode-leave', mode='prompt') config.bind('', 'prompt-accept', mode='prompt') # config.bind('', 'prompt-item-focus prev', mode='prompt') # config.bind('', 'prompt-item-focus next', mode='prompt') @@ -1879,8 +1879,8 @@ config.bind('', 'prompt-accept', mode='prompt') ## 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('', 'leave-mode', mode='yesno') +config.bind('', 'mode-leave', mode='yesno') +config.bind('', 'mode-leave', mode='yesno') config.bind('', 'prompt-accept', mode='yesno') config.bind('n', 'prompt-accept no', mode='yesno') config.bind('y', 'prompt-accept yes', mode='yesno')