refactor: add toggle_keybindview command and flow mode keybinds
This commit is contained in:
parent
65c9b41784
commit
3071c10892
2 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue