From 824a2a1ee1249e3cfd5cb966c2039307b23e7467 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Mon, 1 Dec 2025 20:13:52 +0100 Subject: [PATCH] feat: add command to change hint window widget style (shift+alt+f9) --- src/keybind/builtin/flow.json | 1 + src/tui/tui.zig | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/src/keybind/builtin/flow.json b/src/keybind/builtin/flow.json index 264a25b..15d4b24 100644 --- a/src/keybind/builtin/flow.json +++ b/src/keybind/builtin/flow.json @@ -40,6 +40,7 @@ ["f11", "toggle_panel"], ["alt+f11", "toggle_color_scheme"], ["f12", "toggle_inputview"], + ["shift+alt+f9", "hint_window_next_widget_style"], ["alt+!", "run_task"], ["ctrl+tab", "next_tab"], ["ctrl+shift+g", "show_vcs_status"], diff --git a/src/tui/tui.zig b/src/tui/tui.zig index acb36c1..a2b0a38 100644 --- a/src/tui/tui.zig +++ b/src/tui/tui.zig @@ -1456,6 +1456,13 @@ const cmds = struct { resize(); } pub const shrink_centered_view_meta: Meta = .{ .description = "Shrink centered view" }; + + pub fn hint_window_next_widget_style(_: *Self, _: Ctx) Result { + set_next_style(.hint_window); + need_render(); + try save_config(); + } + pub const hint_window_next_widget_style_meta: Meta = .{}; }; pub const MiniMode = struct {