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:
5 files changed
+157
-11
No files matched your search
Generated
+1
-1
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user