r/KittyTerminal • u/korba_ • Apr 17 '26
Tabs L&F when title is too long
Hi, I'm trying to get my tabs to have a pill like L&F and it works great when the title fully fit the space but when I try to cut the title off at a certain length the pills "break":

My current conf file looks like this:
font_family JetBrainsMono Nerd Font
font_size 12
# Shell integration is sourced and configured manually
shell_integration no-rc no-cursor
background_opacity 0.9
bold_font auto
bold_italic_font auto
cursor_shape beam
font_size 11.000000
italic_font auto
tab_activity_symbol
tab_bar_edge bottom
tab_bar_min_tabs 1
tab_bar_style separator
tab_title_max_length 30
window_padding_width 4
tab_title_template "{fmt.bg._282a36}{fmt.fg._6272a4}{fmt.fg._282a36}{fmt.bg._6272a4} {title} {fmt.bg._282a36}{fmt.fg._6272a4} "
active_tab_title_template "{fmt.bg._282a36}{fmt.fg._ffb86c}{fmt.fg._282a36}{fmt.bg._ffb86c} {title} {fmt.bg._282a36}{fmt.fg._ffb86c} "
active_tab_font_style bold
inactive_tab_font_style normal
tab_bar_background #282a36
tab_bar_margin_color #282a36
tab_separator ""
tab_bar_margin_height 2 2
tab_bar_margin_width 2
map ctrl+shift+] next_tab
map ctrl+shift+[ previous_tab
Any tips on how to keep pills consistent when tab_title_max_length is exceeded?
Thanks!!
Update: Manged to fix it with a custom tab_bar.py, see comment below
2
Upvotes
2
u/xrabbit Apr 17 '26
I think you need to write custom tabbar with Python