(command: string)
| 248 | } |
| 249 | |
| 250 | export function useCommandShortcut(command: string): Accessor<string> { |
| 251 | const config = useTuiConfig() |
| 252 | return useKeymapSelector((keymap: OpenTuiKeymap) => |
| 253 | formatKeySequence( |
| 254 | keymap.getCommandBindings({ visibility: "registered", commands: [command] }).get(command)?.[0]?.sequence, |
| 255 | config, |
| 256 | ), |
| 257 | ) |
| 258 | } |
| 259 | |
| 260 | export function useCommandSlashes(): Accessor<readonly CommandSlashEntry[]> { |
| 261 | const keymap = useOpencodeKeymap() |
no test coverage detected