Add window_title_bar_min_windows option, simplify window_title_bar

- Add window_title_bar_min_windows (0=never, 1=always, 2+=threshold)
  similar to tab_bar_min_tabs, to control when title bars appear
- Remove 'none' choice from window_title_bar so it purely controls
  position (top/bottom); disabling is now via min_windows 0
- Only hide title bar for truly empty template strings, not
  whitespace-only, so users can have intentionally blank bars

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
mcrmck
2026-03-04 21:14:54 -05:00
parent dd26469cb3
commit f2ae5d0028
5 changed files with 26 additions and 13 deletions

View File

@@ -1078,8 +1078,8 @@ class Window:
)
rendered_title = pts.render(data, progress_percent)
# If template evaluates to empty/whitespace, zero title bar geometry to hide it
if not rendered_title or not rendered_title.strip():
# If template evaluates to empty string, zero title bar geometry to hide it
if not rendered_title:
set_window_title_bar_render_data(
self.os_window_id, self.tab_id, self.id, pts.screen,
0, 0, 0, 0,