From dc3b4f8c16e2bc0d0e7ecc3cc25f52e36f50244f Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Thu, 11 Dec 2025 18:46:08 +0100 Subject: [PATCH] refactor: add panel_next_widget_style command --- src/keybind/builtin/flow.json | 2 ++ src/tui/tui.zig | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/src/keybind/builtin/flow.json b/src/keybind/builtin/flow.json index c15cdb3..6a0af6b 100644 --- a/src/keybind/builtin/flow.json +++ b/src/keybind/builtin/flow.json @@ -44,6 +44,7 @@ ["f10", "theme_next"], ["f11", "toggle_panel"], ["alt+f11", "toggle_color_scheme"], + ["alt+f9", "panel_next_widget_style"], ["shift+alt+f9", "hint_window_next_widget_style"], ["alt+!", "run_task"], ["ctrl+tab", "next_tab"], @@ -527,6 +528,7 @@ "press": [ ["ctrl+?", "toggle_keybind_hints"], ["ctrl+alt+?", "scroll_keybind_hints"], + ["alt+f9", "panel_next_widget_style"], ["ctrl+q", "quit"], ["ctrl+v", "system_paste"], ["ctrl+u", "mini_mode_reset"], diff --git a/src/tui/tui.zig b/src/tui/tui.zig index 60c75c2..761c616 100644 --- a/src/tui/tui.zig +++ b/src/tui/tui.zig @@ -1552,6 +1552,13 @@ const cmds = struct { } pub const shrink_centered_view_meta: Meta = .{ .description = "Shrink centered view" }; + pub fn panel_next_widget_style(_: *Self, _: Ctx) Result { + set_next_style(.panel); + need_render(); + try save_config(); + } + pub const panel_next_widget_style_meta: Meta = .{}; + pub fn hint_window_next_widget_style(_: *Self, _: Ctx) Result { set_next_style(.hint_window); need_render();