feat: vi-style command prompt in the TUI for menu shell commands (issue #26)

This commit is contained in:
2026-07-15 19:54:30 +02:00
parent 01b90e00a0
commit 824313f106
10 changed files with 739 additions and 232 deletions

View File

@@ -62,6 +62,19 @@ rule AiQuickAction {
ensures: AiSuggestionsRequestedOrRefused()
}
rule CommandPrompt {
when: TuiKeyPressed(code: ":" | "?")
-- Vi-style prompt: ":" opens a filterable list of the parameterless
-- Blog-menu shell commands (metadata diff, validate site, force
-- render, rebuilds, reindex, translations, duplicates, upload,
-- browser preview URL) and runs the selection through the same
-- BDS.Desktop.ShellCommands backend as the GUI menu; "?" (or ":?")
-- shows the same list as help. Commands whose report/apply follow-up
-- UI exists only in the GUI are marked so the user knows. Queued
-- tasks report progress in the status line until all tasks finish.
ensures: CommandListShownOrExecuted()
}
rule MultiClientSync {
when: TuiEventReceived(entity, entity_id, action)
-- Domain events refresh the sidebar; a post deleted elsewhere closes