feat: add item detail to completion palette

This commit is contained in:
CJ van den Berg 2025-12-07 23:50:02 +01:00
parent 8b17eb9817
commit a10254b77a
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 43 additions and 18 deletions

View file

@ -162,7 +162,7 @@ pub fn on_render_menu(palette: *Type, button: *Type.ButtonType, theme: *const Wi
write_columns(palette, writer, &column_info);
const indicator: []const u8 = &.{};
return tui.render_file_item(&button.plane, value.written(), icon_, color, indicator, matches_cbor, button.active, selected, button.hover, theme);
return tui.render_file_item(&button.plane, value.written(), icon_, color, indicator, &.{}, matches_cbor, button.active, selected, button.hover, theme);
}
fn get_values(item_cbor: []const u8) struct { []const u8, []const u8, u8, ed.Selection } {