feat(tab-bar): add command status and abbreviated cwd indicators

The tab bar only showed the window title, so it was impossible to tell at a
glance whether the last command failed or which directory a tab was in. Expose
the active window's last exit status and a compact working directory to
tab_title_template, and refresh the tab bar when a command finishes.
This commit is contained in:
BlackAngelTV committed 2026-11-09 11:14:07 +01:00
1 parent 90e6355841
commit bcf3fdff7b
5 files changed
+157 -11

No files matched your search

+1 -1
View File
@@ -704,7 +704,7 @@ class Options:
tab_switch_strategy: choices_for_tab_switch_strategy = 'previous'
tab_title_max_length: int = 0
tab_title_max_lines: int = 1
tab_title_template: str = '{fmt.fg.red}{bell_symbol}{activity_symbol}{secure_input_symbol}{fmt.fg.tab}{tab.last_focused_progress_percent}{title}'
tab_title_template: str = '{fmt.fg.red}{bell_symbol}{activity_symbol}{exit_status_symbol}{secure_input_symbol}{fmt.fg.tab}{tab.last_focused_progress_percent}{title}'
tab_title_wrap: int = 0
term: str = 'xterm-kitty'
terminfo_type: choices_for_terminfo_type = 'path'