diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-08-17 11:55:58 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-08-17 12:12:02 +0200 |
commit | 5b28fba7cd7790cacecb2baafb645ea8139bd55b (patch) | |
tree | 71baa86c28202d3e379b4304a07ce2d196feb021 | |
parent | e8d9b1772f054c50d98a51cc91f7ef253c51edd3 (diff) | |
download | qutebrowser-5b28fba7cd7790cacecb2baafb645ea8139bd55b.tar.gz qutebrowser-5b28fba7cd7790cacecb2baafb645ea8139bd55b.zip |
Update changelog
-rw-r--r-- | doc/changelog.asciidoc | 3 | ||||
-rw-r--r-- | qutebrowser/browser/hints.py | 13 |
2 files changed, 10 insertions, 6 deletions
diff --git a/doc/changelog.asciidoc b/doc/changelog.asciidoc index e75bee169..c17763aa4 100644 --- a/doc/changelog.asciidoc +++ b/doc/changelog.asciidoc @@ -41,6 +41,9 @@ Changed displaying a download prompt. - In Greasemonkey scripts, using "overrideMimeType" with GM_xmlhttpRequest is now supported. +- `:hint --rapid` is now supported for the `tab` hinting target no matter what + `tabs.background` is set to, as there are various scenarios where tabs can + open in the background. [[v2.3.1]] v2.3.1 (2021-07-28) diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index f03eca7af..6ac44adbc 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -753,12 +753,13 @@ class HintManager(QObject): if mode_manager.mode == usertypes.KeyMode.hint: modeman.leave(self._win_id, usertypes.KeyMode.hint, 're-hinting') - if rapid and target in [ - Target.tab_fg, # opens new tab - Target.fill, # exits hint mode - Target.right_click, # opens multiple context menus - Target.delete, # deleting elements shifts them - ]: + no_rapid_targets = [ + Target.tab_fg, # opens new tab + Target.fill, # exits hint mode + Target.right_click, # opens multiple context menus + Target.delete, # deleting elements shifts them + ] + if rapid and target in no_rapid_targets: name = target.name.replace('_', '-') raise cmdutils.CommandError( f"Rapid hinting makes no sense with target {name}!") |