From 351dd2ea51be4e9416261f3086c2f4967d88ba61 Mon Sep 17 00:00:00 2001 From: rhodes-b <59537185+rhodes-b@users.noreply.github.com> Date: Fri, 28 Nov 2025 19:26:11 -0600 Subject: [PATCH] allow list themes --plain to accept --color flag --- src/cli/list_themes.zig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cli/list_themes.zig b/src/cli/list_themes.zig index 63184ddfb..eb7cb49a3 100644 --- a/src/cli/list_themes.zig +++ b/src/cli/list_themes.zig @@ -180,7 +180,13 @@ pub fn run(gpa_alloc: std.mem.Allocator) !u8 { return 0; } + var theme_config = try Config.default(gpa_alloc); + defer theme_config.deinit(); for (themes.items) |theme| { + try theme_config.loadFile(theme_config._arena.?.allocator(), theme.path); + if (!shouldIncludeTheme(opts.color, theme_config)) { + continue; + } if (opts.path) try stdout.print("{s} ({t}) {s}\n", .{ theme.theme, theme.location, theme.path }) else