Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,10 @@ const DEFAULT_CONFIG: &str = r##"# herdr configuration
# distinct static glyphs for blocked, working, done, idle, and unknown states.
# status_indicators = "dots"

# Accent color for highlights, borders, and navigation UI.
# Accepts: hex (#89b4fa), named colors (cyan, blue, magenta), or rgb(r,g,b)
# accent = "cyan"

# Expanded agent rows. Built-ins are state_icon, state_text, workspace, tab, pane, agent,
# terminal_title, and terminal_title_stripped.
# Custom values reported through pane metadata use a $name token.
Expand All @@ -377,10 +381,6 @@ const DEFAULT_CONFIG: &str = r##"# herdr configuration
# row_gap = 0
# rows = [["state_icon", "workspace"], ["branch", "git_status"]]

# Accent color for highlights, borders, and navigation UI.
# Accepts: hex (#89b4fa), named colors (cyan, blue, magenta), or rgb(r,g,b)
# accent = "cyan"

# Background notification popup delivery
[ui.toast]
# off = disable pop-up notifications
Expand Down Expand Up @@ -924,6 +924,14 @@ fn main() -> io::Result<()> {
mod tests {
use super::*;

#[test]
fn default_config_lists_ui_accent_before_nested_tables() {
let accent = DEFAULT_CONFIG.find("# accent = \"cyan\"").unwrap();
let sidebar = DEFAULT_CONFIG.find("# [ui.sidebar.agents]").unwrap();

assert!(accent < sidebar);
}

#[test]
fn nested_herdr_blocks_when_env_is_set() {
let config = config::Config::default();
Expand Down
Loading