Autosuggest & Autocomplete
Chronos provides context-aware autosuggest in both the CLI and the Dashboard Terminal widget.
Where It Runs
- CLI:
Modules/Console.py(prompt_toolkit completer + autosuggest). - Dashboard Terminal:
Utilities/Dashboard/Widgets/Terminal/index.js. - Data source: registry JSON files under
Registry/.
Registry Inputs
Registry/command_registry.json- commands, aliases, usage, syntax slots.Registry/item_registry.json- item types + item names.Registry/property_registry.json- property keys + values.
Refresh registries with:
register commands
register items
register properties
register all
Syntax Slots
Each command defines valid argument patterns with slot types like item_type, weekday, and keyword slots (e.g., kw:profiles).
{
"slots": ["kw:profiles", "choice:list|view|save|delete"],
"allow_properties": false
}
Pipelines
list ... then <command>switches suggestion context afterthen.bulk <command>uses the nested command for suggestions.
