From c4f37d89ecac556980157fb3b478ec72f33ea147 Mon Sep 17 00:00:00 2001 From: Luca Bilke <bilke@tralios.de> Date: Mon, 1 Aug 2022 14:31:03 +0200 Subject: [PATCH] remove title compression when title is too long --- .config/kitty/tab_bar.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/kitty/tab_bar.py b/.config/kitty/tab_bar.py index 314def71..181ea25c 100755 --- a/.config/kitty/tab_bar.py +++ b/.config/kitty/tab_bar.py @@ -89,9 +89,9 @@ def _draw_left_status( screen.cursor.x = len(ICON) screen.draw(" ") screen.cursor.bg = tab_bg - if tab.title.rindex(tab.title[-1]) + 1 > 15: - title = f'{os.path.splitext(tab.title)[0][:14-len(os.path.splitext(tab.title))]}…{os.path.splitext(tab.title)[1]}' - tab = TabBarData(title, tab.is_active, tab.needs_attention, tab.num_windows, tab.num_window_groups, tab.layout_name, tab.has_activity_since_last_focus, tab.active_fg, tab.active_bg, tab.inactive_fg, tab.inactive_bg) + # if tab.title.rindex(tab.title[-1]) + 1 > 15: + # title = f'{os.path.splitext(tab.title)[0][:14-len(os.path.splitext(tab.title))]}…{os.path.splitext(tab.title)[1]}' + # tab = TabBarData(title, tab.is_active, tab.needs_attention, tab.num_windows, tab.num_window_groups, tab.layout_name, tab.has_activity_since_last_focus, tab.active_fg, tab.active_bg, tab.inactive_fg, tab.inactive_bg) draw_title(draw_data, screen, tab, index) if not needs_soft_separator: screen.draw(" ")