-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
- Allow users to provide autocomplete callback of the form
std::vector<std::string> autocomplete(const std::string &input) - When Tab is pressed on the keyboard, and a callback has been supplied to the
CliPromptinstance, call it - If only one string is in the returned vector, replace the current input with that string
- If more than one, do what (ba)sh does:
- Print newline
- List all autocomplete options while respecting console width (which will always be 32 afaik)
- Reprint prompt with input
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request