fix: use configured labels for meta columns in list display

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-16 13:37:05 -03:00
parent 61ece03aa3
commit 09ec19fcab
2 changed files with 1 additions and 31 deletions

View File

@@ -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);