feat(tab-bar): show the new tab button by default

The + button was only visible when explicitly enabled or while dragging a
window, so new tabs could not be created from the tab bar out of the box. Show
it at rest and keep the tab bar visible with a single tab.
This commit is contained in:
BlackAngelTV committed 2026-11-09 11:14:07 +01:00
1 parent d6b19f026b
commit 0a15964b3e
2 files changed
+9 -9

No files matched your search

+7 -7
View File
@@ -2318,18 +2318,18 @@ The alignment of the tab bar, can be one of: :code:`start`, :code:`center`,
opt(
'tab_bar_show_new_tab_button',
'no',
'yes',
option_type='to_bool',
long_text="""
When set to :code:`yes`, a :code:`+` button is always shown at the end of the
tab bar as a clickable shortcut to open a new tab. When set to :code:`no`
(the default), the button is hidden at rest but still appears temporarily
while a window is being dragged, so it can be used as a drop target to open
the window in a new tab.
When set to :code:`yes` (the default), a :code:`+` button is always shown at
the end of the tab bar as a clickable shortcut to open a new tab. When set to
:code:`no`, the button is hidden at rest but still appears temporarily while a
window is being dragged, so it can be used as a drop target to open the window
in a new tab.
""",
)
opt('tab_bar_min_tabs', '2', option_type='tab_bar_min_tabs', long_text='The minimum number of tabs that must exist before the tab bar is shown.')
opt('tab_bar_min_tabs', '1', option_type='tab_bar_min_tabs', long_text='The minimum number of tabs that must exist before the tab bar is shown.')
opt(
'tab_switch_strategy',