Skip to main content

Module repl_complete

Module repl_complete 

Source
Expand description

Tab completion for the Cortex interactive REPL.

Provides context-aware completion for slash commands, domain names (from the map cache), and page type names.

Structs§

CortexHelper
Cortex REPL helper providing tab completion.
SlashTrigger
Event handler that inserts / and then triggers Tab completion when the line is empty. This gives the Claude Code-style experience where pressing / immediately shows the command picker list.
TabCompleteOrAcceptHint
Event handler that auto-triggers completion after typing /. When Tab is pressed and line starts with /, show the command list.

Constants§

COMMANDS
All available REPL slash commands.

Functions§

bind_keys
Bind custom key sequences to the editor for interactive command selection.
suggest_command
Find the closest matching command for a misspelled input (Levenshtein distance).