module

Obsctl::TUI::Completion

Constants

ALL_COMMANDS = (Domain::CommandRegistry.palette_names + ["/themes"]).sort!

Every palette spelling the parser accepts, plus the dashboard-only settings view. Generated so completion cannot drift from the parser.

RECORD_ACTIONS = Domain::CommandRegistry::RECORD_ACTIONS.keys

Bare /rec still toggles; these are the explicit actions.

Instance methods

compute(input : String, model : Model) : Array(String)

Commands are registered with the / spelling, so a line opened with a different leader -- : for a vim command line, or a configured prefix -- is matched as its / equivalent and handed back wearing the leader the user actually typed.

Source