From f686ca96d2d98f8e001b87c5ecdf912e6bfd9262 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Wed, 3 Dec 2025 19:10:30 +0100 Subject: [PATCH] feat: add toggle_auto_find command --- src/tui/tui.zig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/tui/tui.zig b/src/tui/tui.zig index 6ec120a..0dcfe6b 100644 --- a/src/tui/tui.zig +++ b/src/tui/tui.zig @@ -1064,6 +1064,13 @@ const cmds = struct { } pub const scroll_keybind_hints_meta: Meta = .{ .description = "Scroll keybind hints" }; + pub fn toggle_auto_find(self: *Self, _: Ctx) Result { + defer self.logger.print("auto find {s}", .{if (self.config_.enable_auto_find) "enabled" else "disabled"}); + self.config_.enable_auto_find = !self.config_.enable_auto_find; + try save_config(); + } + pub const toggle_auto_find_meta: Meta = .{ .description = "Toggle auto find mode" }; + pub fn force_color_scheme(self: *Self, ctx: Ctx) Result { self.force_color_scheme(if (try ctx.args.match(.{"dark"})) .dark