feat: add toggle_command_logging command

This commit is contained in:
CJ van den Berg 2025-12-23 13:48:44 +01:00
parent f75cc9b845
commit 0c92cd8b8f
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -1127,6 +1127,11 @@ const cmds = struct {
}
pub const toggle_keybind_hints_meta: Meta = .{ .description = "Toggle keybind hints" };
pub fn toggle_command_logging(_: *Self, _: Ctx) Result {
command.log_execute = !command.log_execute;
}
pub const toggle_command_logging_meta: Meta = .{ .description = "Toggle logging of executed commands" };
pub fn scroll_keybind_hints(_: *Self, _: Ctx) Result {
@import("keyhints.zig").scroll();
}