feat: render home screen based on current input mode
This commit is contained in:
parent
c827972e98
commit
f8dff2a7bb
5 changed files with 132 additions and 83 deletions
|
@ -145,6 +145,16 @@ pub fn get_id_cache(name: []const u8, id: *?ID) ?ID {
|
|||
return null;
|
||||
}
|
||||
|
||||
pub fn get_description(id: ID) ?[]const u8 {
|
||||
if (id >= commands.items.len) return null;
|
||||
return (commands.items[id] orelse return null).meta.description;
|
||||
}
|
||||
|
||||
pub fn get_arguments(id: ID) ?[]const ArgumentType {
|
||||
if (id >= commands.items.len) return null;
|
||||
return (commands.items[id] orelse return null).meta.arguments;
|
||||
}
|
||||
|
||||
const suppressed_errors = .{
|
||||
"enable_fast_scroll",
|
||||
"disable_fast_scroll",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue