diff options
author | Florian Bruhin <git@the-compiler.org> | 2016-08-01 18:19:34 +0200 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2016-08-02 10:52:45 +0200 |
commit | feb73f06c5d6cb2621a5b9797b5b7fd7956fb58e (patch) | |
tree | 58a5c42af861b7746d7c98adf8e6efa45a49d1a2 | |
parent | e32fbe901354fa38f88bae22a48d294940054dda (diff) | |
download | qutebrowser-feb73f06c5d6cb2621a5b9797b5b7fd7956fb58e.tar.gz qutebrowser-feb73f06c5d6cb2621a5b9797b5b7fd7956fb58e.zip |
Fix ;o/;O default bindings
-rw-r--r-- | qutebrowser/config/configdata.py | 6 | ||||
-rw-r--r-- | tests/unit/config/test_config.py | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/qutebrowser/config/configdata.py b/qutebrowser/config/configdata.py index 5110a6090..a1e1d9cbe 100644 --- a/qutebrowser/config/configdata.py +++ b/qutebrowser/config/configdata.py @@ -1458,8 +1458,8 @@ KEY_DATA = collections.OrderedDict([ ('hint all hover', [';h']), ('hint images', [';i']), ('hint images tab', [';I']), - ('hint links fill ":open {hint-url}"', [';o']), - ('hint links fill ":open -t {hint-url}"', [';O']), + ('hint links fill :open {hint-url}', [';o']), + ('hint links fill :open -t {hint-url}', [';O']), ('hint links yank', [';y']), ('hint links yank-primary', [';Y']), ('hint --rapid links tab-bg', [';r']), @@ -1649,4 +1649,6 @@ CHANGED_KEY_COMMANDS = [ (re.compile(r'^leave-mode$'), r'clear-keychain ;; leave-mode'), (re.compile(r'^download-remove --all$'), r'download-clear'), + + (re.compile(r'^hint links fill "([^"]*)"$'), r'hint links fill \1'), ] diff --git a/tests/unit/config/test_config.py b/tests/unit/config/test_config.py index cc6633559..a6ad3d119 100644 --- a/tests/unit/config/test_config.py +++ b/tests/unit/config/test_config.py @@ -281,6 +281,11 @@ class TestKeyConfigParser: ('leave-mode ;; foo', None), ('download-remove --all', 'download-clear'), + + ('hint links fill ":open {hint-url}"', + 'hint links fill :open {hint-url}'), + ('hint links fill ":open -t {hint-url}"', + 'hint links fill :open -t {hint-url}'), ] ) def test_migrations(self, old, new_expected): |