aboutsummaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-06-21 14:02:19 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-06-21 14:03:59 +0300
commit4421c0febbb03a1a4264729a70fb7c440a3b9ca8 (patch)
tree72d1ade2b453ac1948daa85c50c2b6e3599cc204 /src/config
parent92a10fc044d42b216317696a4e8e6f70d7cc7a7d (diff)
fix: add configurable pane gaps
refs #271
Diffstat (limited to 'src/config')
-rw-r--r--src/config/model.rs14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/config/model.rs b/src/config/model.rs
index d07a425f..5396e26b 100644
--- a/src/config/model.rs
+++ b/src/config/model.rs
@@ -444,6 +444,10 @@ pub struct UiConfig {
pub confirm_close: bool,
/// Ask for a tab name before creating a new tab. Default: true.
pub prompt_new_tab_name: bool,
+ /// Draw borders around split panes. Default: true.
+ pub pane_borders: bool,
+ /// Keep split panes visually separated instead of sharing divider borders. Default: true.
+ 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,
/// Agent sidebar ordering. Saved values are "spaces" or "priority". Default: "spaces".
@@ -632,6 +636,8 @@ impl Default for UiConfig {
mouse_scroll_lines: None,
confirm_close: true,
prompt_new_tab_name: true,
+ pane_borders: true,
+ pane_gaps: true,
show_agent_labels_on_pane_borders: false,
agent_panel_sort: AgentPanelSortConfig::Spaces,
accent: "cyan".into(),
@@ -839,15 +845,21 @@ agent_panel_scope = "current"
}
#[test]
- fn pane_border_agent_labels_default_off_and_parse() {
+ fn pane_appearance_defaults_and_parse() {
let default_config = Config::default();
+ assert!(default_config.ui.pane_borders);
+ assert!(default_config.ui.pane_gaps);
assert!(!default_config.ui.show_agent_labels_on_pane_borders);
let toml = r#"
[ui]
+pane_borders = false
+pane_gaps = true
show_agent_labels_on_pane_borders = 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);
}