1
0
Fork 0

cap title length

This commit is contained in:
Luca Bilke 2022-08-03 17:36:38 +02:00
parent 63193fda86
commit 5d6bbc2da4
2 changed files with 2 additions and 3 deletions

View file

@ -48,7 +48,7 @@ tab_bar_style custom
tab_bar_align left
tab_bar_min_tabs 1
tab_switch_strategy previous
tab_title_template "{title.center(5)}"
tab_title_template "{f'{title[:30]}…' if title.rindex(title[-1]) + 1 > 30 else title.center(5)}"
active_tab_font_style bold
inactive_tab_font_style bold
#: }}}

View file

@ -1,6 +1,5 @@
# pyright: reportMissingImports=false
import os
from pprint import pprint
# from pprint import pprint
from datetime import datetime
from kitty.boss import get_boss
from kitty.fast_data_types import Screen, add_timer, get_options