refactor: add panel_next_widget_style command
This commit is contained in:
parent
b08b162a10
commit
dc3b4f8c16
2 changed files with 9 additions and 0 deletions
|
|
@ -44,6 +44,7 @@
|
||||||
["f10", "theme_next"],
|
["f10", "theme_next"],
|
||||||
["f11", "toggle_panel"],
|
["f11", "toggle_panel"],
|
||||||
["alt+f11", "toggle_color_scheme"],
|
["alt+f11", "toggle_color_scheme"],
|
||||||
|
["alt+f9", "panel_next_widget_style"],
|
||||||
["shift+alt+f9", "hint_window_next_widget_style"],
|
["shift+alt+f9", "hint_window_next_widget_style"],
|
||||||
["alt+!", "run_task"],
|
["alt+!", "run_task"],
|
||||||
["ctrl+tab", "next_tab"],
|
["ctrl+tab", "next_tab"],
|
||||||
|
|
@ -527,6 +528,7 @@
|
||||||
"press": [
|
"press": [
|
||||||
["ctrl+?", "toggle_keybind_hints"],
|
["ctrl+?", "toggle_keybind_hints"],
|
||||||
["ctrl+alt+?", "scroll_keybind_hints"],
|
["ctrl+alt+?", "scroll_keybind_hints"],
|
||||||
|
["alt+f9", "panel_next_widget_style"],
|
||||||
["ctrl+q", "quit"],
|
["ctrl+q", "quit"],
|
||||||
["ctrl+v", "system_paste"],
|
["ctrl+v", "system_paste"],
|
||||||
["ctrl+u", "mini_mode_reset"],
|
["ctrl+u", "mini_mode_reset"],
|
||||||
|
|
|
||||||
|
|
@ -1552,6 +1552,13 @@ const cmds = struct {
|
||||||
}
|
}
|
||||||
pub const shrink_centered_view_meta: Meta = .{ .description = "Shrink centered view" };
|
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 {
|
pub fn hint_window_next_widget_style(_: *Self, _: Ctx) Result {
|
||||||
set_next_style(.hint_window);
|
set_next_style(.hint_window);
|
||||||
need_render();
|
need_render();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue