refactor: add panel_next_widget_style command

This commit is contained in:
CJ van den Berg 2025-12-11 18:46:08 +01:00
parent b08b162a10
commit dc3b4f8c16
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 9 additions and 0 deletions

View file

@ -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"],

View file

@ -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();