This commit is contained in:
Dax Raad
2025-10-31 18:58:48 -04:00
committed by opencode
parent e57c3f0abd
commit c033ccd261
5 changed files with 31 additions and 5 deletions
@@ -47,6 +47,9 @@ function init() {
}
}
},
show() {
dialog.replace(() => <DialogCommand options={options()} />)
},
register(cb: () => CommandOption[]) {
const results = createMemo(cb)
setRegistrations((arr) => [results, ...arr])
@@ -90,7 +93,10 @@ function DialogCommand(props: { options: CommandOption[] }) {
return (
<DialogSelect
title="Commands"
options={props.options.map((x) => ({ ...x, footer: x.keybind ? keybind.print(x.keybind) : undefined }))}
options={props.options.map((x) => ({
...x,
footer: x.keybind ? keybind.print(x.keybind) : undefined,
}))}
/>
)
}