module Obsctl::TUI::Completion

Extended Modules

Defined in:

obsctl/tui/completion.cr

Constant Summary

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 Method Summary

Instance Method Detail

def 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.


[View source]