From 36a584113de8628382b628f4571675872c25332b Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Mon, 8 Sep 2025 18:57:59 -0300 Subject: [PATCH] feat: Add Center alignment to ColumnAlignment for comfy-table compatibility Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) --- src/config.rs | 1 + src/modes/list.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/config.rs b/src/config.rs index 78a4453..80b91bf 100644 --- a/src/config.rs +++ b/src/config.rs @@ -21,6 +21,7 @@ pub enum ColumnAlignment { #[default] Left, Right, + Center, } impl<'de> serde::Deserialize<'de> for ColumnConfig { diff --git a/src/modes/list.rs b/src/modes/list.rs index 1bf8bcb..ffdcfc0 100644 --- a/src/modes/list.rs +++ b/src/modes/list.rs @@ -161,6 +161,7 @@ pub fn mode_list( cell = match column.align { crate::config::ColumnAlignment::Right => cell.set_alignment(CellAlignment::Right), crate::config::ColumnAlignment::Left => cell.set_alignment(CellAlignment::Left), + crate::config::ColumnAlignment::Center => cell.set_alignment(CellAlignment::Center), }; table_row.add_cell(cell); }