refactor: move flow mode keybindings to keybind module

This commit is contained in:
CJ van den Berg 2024-11-12 21:46:54 +01:00
parent b2c81c50ed
commit 4be4fe76e9
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 13 additions and 22 deletions

View file

@ -668,12 +668,12 @@ const cmds = struct {
else if (std.mem.eql(u8, mode, "helix/select"))
try @import("mode/input/helix/select.zig").create(self.allocator)
else if (std.mem.eql(u8, mode, "flow"))
try @import("mode/input/flow.zig").create(self.allocator)
try self.static_mode(keybind.mode.input.flow, "flow")
else if (std.mem.eql(u8, mode, "home"))
try self.static_mode(keybind.mode.input.home, "home")
else ret: {
self.logger.print("unknown mode {s}", .{mode});
break :ret try @import("mode/input/flow.zig").create(self.allocator);
break :ret try self.static_mode(keybind.mode.input.flow, "flow");
};
// self.logger.print("input mode: {s}", .{(self.input_mode orelse return).description});
}