summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/changelog.asciidoc3
-rw-r--r--qutebrowser/browser/hints.py13
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}!")