feat: render home screen based on current input mode

This commit is contained in:
CJ van den Berg 2024-12-05 19:48:17 +01:00
parent c827972e98
commit f8dff2a7bb
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
5 changed files with 132 additions and 83 deletions

View file

@ -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",