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 bcf3fdff7b
commit f324f5fff2
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',
+2 -2
View File
@@ -695,8 +695,8 @@ class Options:
tab_bar_margin_color: kitty.fast_data_types.Color | None = None
tab_bar_margin_height: TabBarMarginHeight = TabBarMarginHeight(outer=0, inner=0)
tab_bar_margin_width: float = 0
tab_bar_min_tabs: int = 2
tab_bar_show_new_tab_button: bool = False
tab_bar_min_tabs: int = 1
tab_bar_show_new_tab_button: bool = True
tab_bar_style: choices_for_tab_bar_style = 'fade'
tab_fade: tuple[float, ...] = (0.25, 0.5, 0.75, 1.0)
tab_powerline_style: choices_for_tab_powerline_style = 'angled'