diff --git a/doc/help/settings.asciidoc b/doc/help/settings.asciidoc index 1e58ffa87..4c0362aa7 100644 --- a/doc/help/settings.asciidoc +++ b/doc/help/settings.asciidoc @@ -257,6 +257,8 @@ |<>|Format to use for the tab title for pinned tabs. The same placeholders like for `tabs.title.format` are defined. |<>|Width (in pixels or as percentage of the window) of the tab bar if it's vertical. |<>|Wrap when changing tabs. +|<>|Mute the First Tab and Last Tab +messages when wrap is set to False. |<>|What search to start when something else than a URL is entered. |<>|Page to open if :open -t/-b/-w is used without URL. |<>|URL segments where `:navigate increment/decrement` will search for a number. @@ -3074,6 +3076,14 @@ Type: <> Default: +pass:[true]+ +[[tabs.mute_messages]] +=== tabs.mute_messages +Mute First Tab and Last Tab messages when tabs.wrap is set to False. + +Type: <> + +Default: +pass:[false]+ + [[url.auto_search]] === url.auto_search What search to start when something else than a URL is entered. diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index f2438cebe..63b13339e 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -1022,7 +1022,8 @@ class CommandDispatcher: elif config.val.tabs.wrap: self._set_current_index(newidx % self._count()) else: - raise cmdexc.CommandError("First tab") + if not config.val.tabs.mute_messages: + raise cmdexc.CommandError("First tab") @cmdutils.register(instance='command-dispatcher', scope='window') @cmdutils.argument('count', count=True) @@ -1042,7 +1043,8 @@ class CommandDispatcher: elif config.val.tabs.wrap: self._set_current_index(newidx % self._count()) else: - raise cmdexc.CommandError("Last tab") + if not config.val.tabs.mute_messages: + raise cmdexc.CommandError("Last tab") def _resolve_buffer_index(self, index): """Resolve a buffer index to the tabbedbrowser and tab. diff --git a/qutebrowser/config/configdata.yml b/qutebrowser/config/configdata.yml index 7034d030c..8ce9566ac 100644 --- a/qutebrowser/config/configdata.yml +++ b/qutebrowser/config/configdata.yml @@ -1458,6 +1458,11 @@ tabs.wrap: type: Bool desc: Wrap when changing tabs. +tabs.mute_messages: + default: false + type: Bool + desc: Mute the First Tab and Last Tab messages when wrap is set to False. + ## url url.auto_search: