Remove first/last tab messages
This commit is contained in:
parent
eb18f0a2ac
commit
b7964d9baf
@ -240,8 +240,6 @@
|
|||||||
|<<tabs.indicator.padding,tabs.indicator.padding>>|Padding (in pixels) for tab indicators.
|
|<<tabs.indicator.padding,tabs.indicator.padding>>|Padding (in pixels) for tab indicators.
|
||||||
|<<tabs.indicator.width,tabs.indicator.width>>|Width (in pixels) of the progress indicator (0 to disable).
|
|<<tabs.indicator.width,tabs.indicator.width>>|Width (in pixels) of the progress indicator (0 to disable).
|
||||||
|<<tabs.last_close,tabs.last_close>>|How to behave when the last tab is closed.
|
|<<tabs.last_close,tabs.last_close>>|How to behave when the last tab is closed.
|
||||||
|<<tabs.mute_messages,tabs.mute_messages>>|Mute the First Tab and Last Tab
|
|
||||||
messages when wrap is False.
|
|
||||||
|<<tabs.min_width,tabs.min_width>>|Minimum width (in pixels) of tabs (-1 for the default minimum size behavior).
|
|<<tabs.min_width,tabs.min_width>>|Minimum width (in pixels) of tabs (-1 for the default minimum size behavior).
|
||||||
|<<tabs.mode_on_change,tabs.mode_on_change>>|When switching tabs, what input mode is applied.
|
|<<tabs.mode_on_change,tabs.mode_on_change>>|When switching tabs, what input mode is applied.
|
||||||
|<<tabs.mousewheel_switching,tabs.mousewheel_switching>>|Switch between tabs using the mouse wheel.
|
|<<tabs.mousewheel_switching,tabs.mousewheel_switching>>|Switch between tabs using the mouse wheel.
|
||||||
@ -2872,14 +2870,6 @@ Valid values:
|
|||||||
|
|
||||||
Default: +pass:[ignore]+
|
Default: +pass:[ignore]+
|
||||||
|
|
||||||
[[tabs.mute_messages]]
|
|
||||||
=== tabs.mute_messages
|
|
||||||
Mute First Tab and Last Tab messages when `tabs.wrap` is False.
|
|
||||||
|
|
||||||
Type: <<types,Bool>>
|
|
||||||
|
|
||||||
Default: +pass:[false]+
|
|
||||||
|
|
||||||
[[tabs.min_width]]
|
[[tabs.min_width]]
|
||||||
=== tabs.min_width
|
=== tabs.min_width
|
||||||
Minimum width (in pixels) of tabs (-1 for the default minimum size behavior).
|
Minimum width (in pixels) of tabs (-1 for the default minimum size behavior).
|
||||||
|
@ -1021,9 +1021,6 @@ class CommandDispatcher:
|
|||||||
self._set_current_index(newidx)
|
self._set_current_index(newidx)
|
||||||
elif config.val.tabs.wrap:
|
elif config.val.tabs.wrap:
|
||||||
self._set_current_index(newidx % self._count())
|
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.register(instance='command-dispatcher', scope='window')
|
||||||
@cmdutils.argument('count', count=True)
|
@cmdutils.argument('count', count=True)
|
||||||
@ -1042,9 +1039,6 @@ class CommandDispatcher:
|
|||||||
self._set_current_index(newidx)
|
self._set_current_index(newidx)
|
||||||
elif config.val.tabs.wrap:
|
elif config.val.tabs.wrap:
|
||||||
self._set_current_index(newidx % self._count())
|
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):
|
def _resolve_buffer_index(self, index):
|
||||||
"""Resolve a buffer index to the tabbedbrowser and tab.
|
"""Resolve a buffer index to the tabbedbrowser and tab.
|
||||||
|
@ -1458,11 +1458,6 @@ tabs.wrap:
|
|||||||
type: Bool
|
type: Bool
|
||||||
desc: Wrap when changing tabs.
|
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
|
||||||
|
|
||||||
url.auto_search:
|
url.auto_search:
|
||||||
|
Loading…
Reference in New Issue
Block a user