Fix ;o/;O default bindings

This commit is contained in:
Florian Bruhin 2016-08-01 18:19:34 +02:00
parent 49699be44e
commit ef439bb916
3 changed files with 10 additions and 2 deletions

View File

@ -43,6 +43,7 @@ Fixed
- Fixed crash when using hints with JS disabled in some rare circumstances. - Fixed crash when using hints with JS disabled in some rare circumstances.
- When hinting input fields (`:t`), also consider input elements without a type. - When hinting input fields (`:t`), also consider input elements without a type.
- Fixed crash when opening an invalid URL with a percent-encoded and a real @ in it - Fixed crash when opening an invalid URL with a percent-encoded and a real @ in it
- Fixed default `;o` and `;O` bindings
v0.8.1 v0.8.1
------ ------

View File

@ -1462,8 +1462,8 @@ KEY_DATA = collections.OrderedDict([
('hint all hover', [';h']), ('hint all hover', [';h']),
('hint images', [';i']), ('hint images', [';i']),
('hint images tab', [';I']), ('hint images tab', [';I']),
('hint links fill ":open {hint-url}"', [';o']), ('hint links fill :open {hint-url}', [';o']),
('hint links fill ":open -t {hint-url}"', [';O']), ('hint links fill :open -t {hint-url}', [';O']),
('hint links yank', [';y']), ('hint links yank', [';y']),
('hint links yank-primary', [';Y']), ('hint links yank-primary', [';Y']),
('hint --rapid links tab-bg', [';r']), ('hint --rapid links tab-bg', [';r']),
@ -1654,4 +1654,6 @@ CHANGED_KEY_COMMANDS = [
(re.compile(r'^leave-mode$'), r'clear-keychain ;; leave-mode'), (re.compile(r'^leave-mode$'), r'clear-keychain ;; leave-mode'),
(re.compile(r'^download-remove --all$'), r'download-clear'), (re.compile(r'^download-remove --all$'), r'download-clear'),
(re.compile(r'^hint links fill "([^"]*)"$'), r'hint links fill \1'),
] ]

View File

@ -281,6 +281,11 @@ class TestKeyConfigParser:
('leave-mode ;; foo', None), ('leave-mode ;; foo', None),
('download-remove --all', 'download-clear'), ('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): def test_migrations(self, old, new_expected):