Artificial intelligent assistant

Kitty Terminal Tab Title without path? I have been playing around with the settings in the kitty docs. I am using `tab_title_template` to change the title of a tab. The `{title}` variable includes the file name and the path. Is there any way to take out the path and only have the file name? my current kitty.conf looks like this: tab_title_template "{index}: {title}"

I am playing with kitty today as well, and I come upon the same question as you. This is the way I figure out myself just then. Hope to give you some inspiration!


tab_title_template "{index}: {title[title.rfind('/')+1:]}"

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 2c6af74fdd2821bc6fd59be52f7a8586