From e48d83067a5a9b05dfd0a82761068866ab2d294d Mon Sep 17 00:00:00 2001 From: Can Celik Date: Mon, 10 Aug 2026 01:20:09 +0300 Subject: feat: add configurable tab bar status (#2586) * feat: show a zoom indicator in the desktop tab bar Reserve the right edge of the tab row for a ZOOM pill while the focused pane is zoomed, matching the accent style of the mode bars. The per-tab Z suffix stays; the pill makes the zoomed state visible at a glance like tmux's status-right flag. * feat: optionally show the hostname in the desktop tab bar Add ui.tab_bar_hostname to display the machine's hostname at the right edge of the tab row, like tmux's #h in status-right. The value resolves where the server renders, so remote sessions show the remote host. Off by default. * fix: strip control characters from the tab bar hostname * fix: hide the hostname when it would squeeze out the tab strip * feat: add configurable tab bar status * fix: harden tab bar status updates * fix: terminate tab bar status process trees * fix: disable status commands on unsupported platforms * fix: skip unchanged status command renders * fix: keep tab bar status opt-in by default --------- Co-authored-by: David Heinemeier Hansson --- src/ui.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui.rs') diff --git a/src/ui.rs b/src/ui.rs index 60143fe4..81964422 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -96,7 +96,7 @@ pub(crate) use self::{ }, panes::{apply_pane_chrome, pane_inner_rect, pane_is_scrolled_back}, tab_surface::{tab_surface_cursor, tab_surface_hyperlinks, TabSurfaceView}, - tabs::compute_tab_bar_view, + tabs::{compute_tab_bar_view, tab_bar_content_area}, widgets::{centered_popup_rect, modal_stack_areas}, }; use crate::app::state::ViewLayout; @@ -267,7 +267,7 @@ fn compute_view_internal( .map(|ws| { compute_tab_bar_view( ws, - tab_bar_rect, + tab_bar_content_area(app, tab_bar_rect), app.tab_scroll, app.tab_scroll_follow_active, app.mouse_capture, -- cgit v1.2.3