feat: add flow native keybinding parser
This commit is contained in:
parent
34f7c0a7bd
commit
524e5be47c
7 changed files with 742 additions and 535 deletions
|
@ -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),
|
||||
},
|
||||
.{
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
.{
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
.{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue