From 5897f89a76a3abb3c0079b42e5f8118df6f5360c Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Sat, 16 Aug 2025 13:09:49 -0300 Subject: [PATCH] fix: fix handling of meta:* columns and labels Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) --- src/config.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index b0dc353..68d404f 100644 --- a/src/config.rs +++ b/src/config.rs @@ -112,6 +112,8 @@ impl Settings { config_builder = config_builder.set_override("dir", dir.to_str().unwrap())?; } + // Only override list_format if it was explicitly provided via CLI args + // (not equal to the default value) if args.options.list_format != "id,time,size,tags,meta:hostname" { // Convert the string format to the new list format structure let columns: Vec> = args.options.list_format @@ -119,7 +121,7 @@ impl Settings { .map(|col| { let parts: Vec<&str> = col.split(':').collect(); let mut map = std::collections::HashMap::new(); - map.insert("name".to_string(), parts[0].to_string()); + map.insert("name".to_string(), col.to_string()); // Use full column spec as name let label = if parts.len() > 1 { parts[1].to_string() } else {