feat: generate hints for dynamic keybindings
This commit is contained in:
parent
271f45e78a
commit
3af2b09891
10 changed files with 98 additions and 64 deletions
|
|
@ -41,12 +41,14 @@ pub fn create(allocator: Allocator, ctx: command.Context) !struct { tui.Mode, tu
|
|||
.operation = if (select) .select else .move,
|
||||
};
|
||||
try self.commands.init(self);
|
||||
const input_handler, const keybind_hints = try keybind.mode.mini.move_to_char.create(allocator, .{
|
||||
.insert_command = "mini_mode_insert_bytes",
|
||||
});
|
||||
return .{
|
||||
.{
|
||||
.input_handler = try keybind.mode.mini.move_to_char.create(allocator, .{
|
||||
.insert_command = "mini_mode_insert_bytes",
|
||||
}),
|
||||
.input_handler = input_handler,
|
||||
.event_handler = EventHandler.to_owned(self),
|
||||
.keybind_hints = keybind_hints,
|
||||
},
|
||||
.{
|
||||
.name = self.name(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue