From 0a15964b3e8e371d9e501ecb5a66eb09f614636a Mon Sep 17 00:00:00 2001 From: BlackAngelTVdev Date: Mon, 9 Nov 2026 11:14:07 +0100 Subject: [PATCH] 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. --- kitty/options/definition.py | 14 +++++++------- kitty/options/types.py | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/kitty/options/definition.py b/kitty/options/definition.py index 83bf1cc..c3b2c58 100644 --- a/kitty/options/definition.py +++ b/kitty/options/definition.py @@ -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', diff --git a/kitty/options/types.py b/kitty/options/types.py index 3c6c4ca..3cbecc2 100644 --- a/kitty/options/types.py +++ b/kitty/options/types.py @@ -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'