From 1f983f20900d502404dc69860aa61f298be72a9f Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Wed, 3 Sep 2025 09:02:28 -0300 Subject: [PATCH] feat: Add placeholder for filter plugins table to status output Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) --- src/modes/status_plugins.rs | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/src/modes/status_plugins.rs b/src/modes/status_plugins.rs index c262ab9..50e46d0 100644 --- a/src/modes/status_plugins.rs +++ b/src/modes/status_plugins.rs @@ -14,6 +14,7 @@ use prettytable::format::consts::{FORMAT_BOX_CHARS, FORMAT_NO_BORDER_LINE_SEPARA use crate::meta_plugin::{MetaPluginType, get_meta_plugin}; use crate::common::status::{MetaPluginInfo, CompressionInfo}; +use crate::filter_plugin; use prettytable::color; @@ -121,6 +122,30 @@ fn build_compression_table(compression_info: &Vec) -> Table { compression_table } +fn build_filter_plugin_table() -> Table { + let mut filter_plugin_table = Table::new(); + if std::io::stdout().is_terminal() { + filter_plugin_table.set_format(*FORMAT_BOX_CHARS); + } else { + filter_plugin_table.set_format(*FORMAT_NO_BORDER_LINE_SEPARATOR); + } + + filter_plugin_table.set_titles(row!( + b->"Plugin Name", + b->"Options", + b->"Description")); + + // For now, we'll use a placeholder since we don't have access to filter plugin information + // In a real implementation, you would query the available filter plugins + filter_plugin_table.add_row(Row::new(vec![ + Cell::new("No filter plugins available"), + Cell::new("{}"), + Cell::new(""), + ])); + + filter_plugin_table +} + pub fn mode_status_plugins( cmd: &mut Command, settings: &config::Settings, @@ -145,9 +170,8 @@ pub fn mode_status_plugins( build_compression_table(&status_info.compression).printstd(); println!(); - // TODO: Add FILTER PLUGINS section here println!("FILTER PLUGINS:"); - println!("No filter plugins available"); + build_filter_plugin_table().printstd(); println!(); Ok(()) },