feat: add initial simplistic command palette implementation

This commit is contained in:
CJ van den Berg 2024-06-14 21:48:28 +02:00
parent acd65d0157
commit 25556336b9
9 changed files with 289 additions and 5 deletions

View file

@ -71,7 +71,7 @@ pub fn Closure(comptime T: type) type {
}
const CommandTable = std.ArrayList(?*Vtable);
var commands: CommandTable = CommandTable.init(command_table_allocator);
pub var commands: CommandTable = CommandTable.init(command_table_allocator);
var command_names: std.StringHashMap(ID) = std.StringHashMap(ID).init(command_table_allocator);
const command_table_allocator = std.heap.c_allocator;