From 2a1a8d64de678fa0e9e2e2f097e8520095b11c5a Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Tue, 30 Jun 2026 14:09:09 +0300 Subject: feat: hide single-tab tab row refs #448 --- src/config/model.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/config') diff --git a/src/config/model.rs b/src/config/model.rs index 301b58ca..d81a6e64 100644 --- a/src/config/model.rs +++ b/src/config/model.rs @@ -793,6 +793,8 @@ pub struct UiConfig { pub pane_gaps: bool, /// Show agent labels in split pane borders when no manual pane label is set. Default: false. pub show_agent_labels_on_pane_borders: bool, + /// Hide the tab row when the workspace has one tab. Default: false. + pub hide_tab_bar_when_single_tab: bool, /// Agent sidebar ordering. Saved values are "spaces" or "priority". Default: "spaces". pub agent_panel_sort: AgentPanelSortConfig, /// Accent color for highlights, borders, and navigation UI. @@ -984,6 +986,7 @@ impl Default for UiConfig { pane_borders: true, pane_gaps: true, show_agent_labels_on_pane_borders: false, + hide_tab_bar_when_single_tab: false, agent_panel_sort: AgentPanelSortConfig::Spaces, accent: "cyan".into(), toast: ToastConfig::default(), @@ -1195,17 +1198,20 @@ agent_panel_scope = "current" assert!(default_config.ui.pane_borders); assert!(default_config.ui.pane_gaps); assert!(!default_config.ui.show_agent_labels_on_pane_borders); + assert!(!default_config.ui.hide_tab_bar_when_single_tab); let toml = r#" [ui] pane_borders = false pane_gaps = true show_agent_labels_on_pane_borders = true +hide_tab_bar_when_single_tab = true "#; let config: Config = toml::from_str(toml).unwrap(); assert!(!config.ui.pane_borders); assert!(config.ui.pane_gaps); assert!(config.ui.show_agent_labels_on_pane_borders); + assert!(config.ui.hide_tab_bar_when_single_tab); } #[test] -- cgit v1.2.3