From b7964d9baf28e9ad1ed018c7e57111b779ea150f Mon Sep 17 00:00:00 2001 From: Slackhead Date: Sun, 8 Apr 2018 10:31:12 +0100 Subject: [PATCH] Remove first/last tab messages --- doc/help/settings.asciidoc | 10 ---------- qutebrowser/browser/commands.py | 6 ------ qutebrowser/config/configdata.yml | 5 ----- 3 files changed, 21 deletions(-) diff --git a/doc/help/settings.asciidoc b/doc/help/settings.asciidoc index 111fc5a2b..1e58ffa87 100644 --- a/doc/help/settings.asciidoc +++ b/doc/help/settings.asciidoc @@ -240,8 +240,6 @@ |<>|Padding (in pixels) for tab indicators. |<>|Width (in pixels) of the progress indicator (0 to disable). |<>|How to behave when the last tab is closed. -|<>|Mute the First Tab and Last Tab -messages when wrap is False. |<>|Minimum width (in pixels) of tabs (-1 for the default minimum size behavior). |<>|When switching tabs, what input mode is applied. |<>|Switch between tabs using the mouse wheel. @@ -2872,14 +2870,6 @@ Valid values: Default: +pass:[ignore]+ -[[tabs.mute_messages]] -=== tabs.mute_messages -Mute First Tab and Last Tab messages when `tabs.wrap` is False. - -Type: <> - -Default: +pass:[false]+ - [[tabs.min_width]] === tabs.min_width Minimum width (in pixels) of tabs (-1 for the default minimum size behavior). diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index 63b13339e..e2a95215d 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -1021,9 +1021,6 @@ class CommandDispatcher: self._set_current_index(newidx) elif config.val.tabs.wrap: self._set_current_index(newidx % self._count()) - else: - 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,9 +1039,6 @@ class CommandDispatcher: self._set_current_index(newidx) elif config.val.tabs.wrap: self._set_current_index(newidx % self._count()) - else: - 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 8ce9566ac..7034d030c 100644 --- a/qutebrowser/config/configdata.yml +++ b/qutebrowser/config/configdata.yml @@ -1458,11 +1458,6 @@ 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: