diff --git a/src/config.rs b/src/config.rs index 1339a4c..7f0e23f 100644 --- a/src/config.rs +++ b/src/config.rs @@ -112,27 +112,6 @@ 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 - .split(',') - .map(|col| { - let parts: Vec<&str> = col.split(':').collect(); - let mut map = std::collections::HashMap::new(); - 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 { - parts[0].to_string() - }; - map.insert("label".to_string(), label); - map - }) - .collect(); - config_builder = config_builder.set_override("list_format", columns)?; - } if args.options.human_readable { config_builder = config_builder.set_override("human_readable", true)?; diff --git a/src/modes/list.rs b/src/modes/list.rs index 3843a55..9795f81 100644 --- a/src/modes/list.rs +++ b/src/modes/list.rs @@ -90,16 +90,7 @@ pub fn mode_list( let column_type = ColumnType::from_str(&column.name) .map_err(|_| anyhow!("Unknown column {:?}", column.name))?; - if column_type == ColumnType::Meta { - let parts: Vec<&str> = column.name.split(':').collect(); - if parts.len() > 1 { - title_row.add_cell(Cell::new(parts[1]).with_style(Attr::Bold)); - } else { - title_row.add_cell(Cell::new(&column.label).with_style(Attr::Bold)); - } - } else { - title_row.add_cell(Cell::new(&column.label).with_style(Attr::Bold)); - } + title_row.add_cell(Cell::new(&column.label).with_style(Attr::Bold)); } table.set_titles(title_row);