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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user