feat: add flow native keybinding parser

This commit is contained in:
CJ van den Berg 2024-11-16 02:51:39 +01:00
parent 34f7c0a7bd
commit 524e5be47c
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
7 changed files with 742 additions and 535 deletions

View file

@ -50,7 +50,9 @@ pub fn Create(options: type) type {
options.restore_state(self) catch {};
return .{
.{
.input_handler = try keybind.mode.mini.file_browser.create(allocator, .{}),
.input_handler = try keybind.mode.mini.file_browser.create(allocator, .{
.insert_command = "mini_mode_insert_bytes",
}),
.event_handler = EventHandler.to_owned(self),
},
.{

View file

@ -46,7 +46,9 @@ pub fn create(allocator: Allocator, _: command.Context) !struct { tui.Mode, tui.
}
return .{
.{
.input_handler = try keybind.mode.mini.find.create(allocator, .{}),
.input_handler = try keybind.mode.mini.find.create(allocator, .{
.insert_command = "mini_mode_insert_bytes",
}),
.event_handler = EventHandler.to_owned(self),
},
.{

View file

@ -40,7 +40,9 @@ pub fn create(allocator: Allocator, _: command.Context) !struct { tui.Mode, tui.
};
return .{
.{
.input_handler = try keybind.mode.mini.find_in_files.create(allocator, .{}),
.input_handler = try keybind.mode.mini.find_in_files.create(allocator, .{
.insert_command = "mini_mode_insert_bytes",
}),
.event_handler = EventHandler.to_owned(self),
},
.{