aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-06-30 14:09:09 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-06-30 14:10:12 +0300
commit2a1a8d64de678fa0e9e2e2f097e8520095b11c5a (patch)
treeb101d297725eca00a89824be2c013c7cc2074ac0 /src/app
parentf54d8e8c0aee5d3ec9724234d1bcd418bff8ff2f (diff)
feat: hide single-tab tab row
refs #448
Diffstat (limited to 'src/app')
-rw-r--r--src/app/mod.rs2
-rw-r--r--src/app/state.rs2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/app/mod.rs b/src/app/mod.rs
index 05518134..cfcbe07e 100644
--- a/src/app/mod.rs
+++ b/src/app/mod.rs
@@ -602,6 +602,7 @@ impl App {
pane_borders: config.ui.pane_borders,
pane_gaps: config.ui.pane_gaps,
show_agent_labels_on_pane_borders: config.ui.show_agent_labels_on_pane_borders,
+ hide_tab_bar_when_single_tab: config.ui.hide_tab_bar_when_single_tab,
pane_history_persistence: config.experimental.pane_history,
reveal_hidden_cursor_for_cjk_ime: config.experimental.reveal_hidden_cursor_for_cjk_ime,
cjk_ime_agent_filter_configured: !config.experimental.cjk_ime_agents.is_empty(),
@@ -1363,6 +1364,7 @@ impl App {
self.state.pane_gaps = config.ui.pane_gaps;
self.state.show_agent_labels_on_pane_borders =
config.ui.show_agent_labels_on_pane_borders;
+ self.state.hide_tab_bar_when_single_tab = config.ui.hide_tab_bar_when_single_tab;
self.state.agent_panel_sort =
agent_panel_sort_from_config(config.ui.agent_panel_sort);
self.state.agent_panel_scroll = 0;
diff --git a/src/app/state.rs b/src/app/state.rs
index 694ff252..99ab648b 100644
--- a/src/app/state.rs
+++ b/src/app/state.rs
@@ -1366,6 +1366,7 @@ pub struct AppState {
pub pane_borders: bool,
pub pane_gaps: bool,
pub show_agent_labels_on_pane_borders: bool,
+ pub hide_tab_bar_when_single_tab: bool,
pub pane_history_persistence: bool,
/// Expose the focused pane's cursor anchor to the outer terminal even when
/// the pane requested `?25l`. See `[experimental] reveal_hidden_cursor_for_cjk_ime`.
@@ -1723,6 +1724,7 @@ impl AppState {
pane_borders: true,
pane_gaps: false,
show_agent_labels_on_pane_borders: false,
+ hide_tab_bar_when_single_tab: false,
pane_history_persistence: false,
reveal_hidden_cursor_for_cjk_ime: false,
cjk_ime_agent_filter_configured: false,