refactor: add toggle_keybindview command and flow mode keybinds

This commit is contained in:
CJ van den Berg 2025-12-10 15:57:23 +01:00
parent 65c9b41784
commit 3071c10892
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 8 additions and 0 deletions

View file

@ -31,6 +31,7 @@ const logview = @import("logview.zig");
const filelist_view = @import("filelist_view.zig");
const info_view = @import("info_view.zig");
const input_view = @import("inputview.zig");
const keybind_view = @import("keybindview.zig");
const Self = @This();
const Commands = command.Collection(cmds);
@ -845,6 +846,11 @@ const cmds = struct {
}
pub const toggle_inputview_meta: Meta = .{ .description = "Toggle raw input log" };
pub fn toggle_keybindview(self: *Self, _: Ctx) Result {
try self.toggle_panel_view(keybind_view, .toggle);
}
pub const toggle_keybindview_meta: Meta = .{ .description = "Toggle keybind log" };
pub fn toggle_inspector_view(self: *Self, _: Ctx) Result {
try self.toggle_panel_view(@import("inspector_view.zig"), .toggle);
}