feat: add command to change hint window widget style (shift+alt+f9)

This commit is contained in:
CJ van den Berg 2025-12-01 20:13:52 +01:00
parent e4dba00625
commit 824a2a1ee1
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 8 additions and 0 deletions

View file

@ -40,6 +40,7 @@
["f11", "toggle_panel"], ["f11", "toggle_panel"],
["alt+f11", "toggle_color_scheme"], ["alt+f11", "toggle_color_scheme"],
["f12", "toggle_inputview"], ["f12", "toggle_inputview"],
["shift+alt+f9", "hint_window_next_widget_style"],
["alt+!", "run_task"], ["alt+!", "run_task"],
["ctrl+tab", "next_tab"], ["ctrl+tab", "next_tab"],
["ctrl+shift+g", "show_vcs_status"], ["ctrl+shift+g", "show_vcs_status"],

View file

@ -1456,6 +1456,13 @@ const cmds = struct {
resize(); resize();
} }
pub const shrink_centered_view_meta: Meta = .{ .description = "Shrink centered view" }; 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 { pub const MiniMode = struct {