feat: generate hints for dynamic keybindings
This commit is contained in:
parent
271f45e78a
commit
3af2b09891
10 changed files with 98 additions and 64 deletions
|
@ -59,11 +59,13 @@ pub fn create(allocator: std.mem.Allocator) !tui.Mode {
|
|||
self.menu.resize(.{ .y = 0, .x = self.menu_pos_x(), .w = max_menu_width() + 2 });
|
||||
try mv.floating_views.add(self.modal.widget());
|
||||
try mv.floating_views.add(self.menu.container_widget);
|
||||
const input_handler, const keybind_hints = try keybind.mode.overlay.palette.create(allocator, .{
|
||||
.insert_command = "overlay_insert_bytes",
|
||||
});
|
||||
return .{
|
||||
.input_handler = try keybind.mode.overlay.palette.create(allocator, .{
|
||||
.insert_command = "overlay_insert_bytes",
|
||||
}),
|
||||
.input_handler = input_handler,
|
||||
.event_handler = EventHandler.to_owned(self),
|
||||
.keybind_hints = keybind_hints,
|
||||
.name = " open recent",
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue