From 1cfadbf034b9a43f80b88aa4fec201bc8fb212dd Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 19 Aug 2016 15:30:02 +0200 Subject: [PATCH] Fix / ? : bindings This was broken in #1859 and I didn't notice... --- qutebrowser/config/configdata.py | 10 +++++++--- tests/unit/config/test_config.py | 4 ++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/qutebrowser/config/configdata.py b/qutebrowser/config/configdata.py index 699feb9a3..19e4f8ddf 100644 --- a/qutebrowser/config/configdata.py +++ b/qutebrowser/config/configdata.py @@ -1477,9 +1477,9 @@ KEY_DATA = collections.OrderedDict([ ('set-cmd-text :open -b -i {url:pretty}', ['xO']), ('set-cmd-text -s :open -w', ['wo']), ('set-cmd-text :open -w {url:pretty}', ['wO']), - ('set-cmd-text -s :search', ['/']), - ('set-cmd-text -s :search -r', ['?']), - ('set-cmd-text -s :', [':']), + ('set-cmd-text /', ['/']), + ('set-cmd-text ?', ['?']), + ('set-cmd-text :', [':']), ('open -t', ['ga', '']), ('open -w', ['']), ('tab-close', ['d', '']), @@ -1730,4 +1730,8 @@ CHANGED_KEY_COMMANDS = [ (re.compile(r'^open -([twb]) {primary}$'), r'open -\1 -- {primary}'), (re.compile(r'^paste-primary$'), r'insert-text {primary}'), + + (re.compile(r'^set-cmd-text -s :search$'), r'set-cmd-text /'), + (re.compile(r'^set-cmd-text -s :search -r$'), r'set-cmd-text ?'), + (re.compile(r'^set-cmd-text -s :$'), r'set-cmd-text :'), ] diff --git a/tests/unit/config/test_config.py b/tests/unit/config/test_config.py index 70d9e0ddf..f796f8152 100644 --- a/tests/unit/config/test_config.py +++ b/tests/unit/config/test_config.py @@ -363,6 +363,10 @@ class TestKeyConfigParser: ('open {clipboard}', 'open -- {clipboard}'), ('open -t {clipboard}', 'open -t -- {clipboard}'), ('open -b {primary}', 'open -b -- {primary}'), + + ('set-cmd-text -s :search', 'set-cmd-text /'), + ('set-cmd-text -s :search -r', 'set-cmd-text ?'), + ('set-cmd-text -s :', 'set-cmd-text :'), ] ) def test_migrations(self, old, new_expected):