refactor: simplify keybind mode create

This commit is contained in:
CJ van den Berg 2024-10-27 19:05:03 +01:00
parent 525287c7ac
commit ac56635f7b
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
11 changed files with 13 additions and 21 deletions

View file

@ -5,9 +5,7 @@ const event_type = @import("renderer").input.event_type;
const command = @import("command");
const EventHandler = @import("EventHandler");
const Allocator = @import("std").mem.Allocator;
pub fn create(_: Allocator) EventHandler {
pub fn create() EventHandler {
return EventHandler.static(@This());
}

View file

@ -5,9 +5,7 @@ const event_type = @import("renderer").input.event_type;
const command = @import("command");
const EventHandler = @import("EventHandler");
const Allocator = @import("std").mem.Allocator;
pub fn create(_: Allocator) EventHandler {
pub fn create() EventHandler {
return EventHandler.static(@This());
}

View file

@ -5,9 +5,7 @@ const event_type = @import("renderer").input.event_type;
const command = @import("command");
const EventHandler = @import("EventHandler");
const Allocator = @import("std").mem.Allocator;
pub fn create(_: Allocator) EventHandler {
pub fn create() EventHandler {
return EventHandler.static(@This());
}

View file

@ -5,10 +5,7 @@ const event_type = @import("renderer").input.event_type;
const command = @import("command");
const EventHandler = @import("EventHandler");
const Allocator = @import("std").mem.Allocator;
const fmt = @import("std").fmt;
pub fn create(_: Allocator) EventHandler {
pub fn create() EventHandler {
return EventHandler.static(@This());
}

View file

@ -5,9 +5,7 @@ const event_type = @import("renderer").input.event_type;
const command = @import("command");
const EventHandler = @import("EventHandler");
const Allocator = @import("std").mem.Allocator;
pub fn create(_: Allocator) EventHandler {
pub fn create() EventHandler {
return EventHandler.static(@This());
}

View file

@ -1,4 +1,7 @@
pub const mode = struct {
pub const overlay = struct {
pub const palette = @import("overlay/palette.zig");
};
pub const mini = struct {
pub const goto = @import("mini/goto.zig");
pub const move_to_char = @import("mini/move_to_char.zig");