rustyline icon indicating copy to clipboard operation
rustyline copied to clipboard

More flexible way to trigger completion

Open PaddiM8 opened this issue 4 years ago • 2 comments

I haven't been able to find a more flexible way to trigger the completer. I currently complete eg. sqrt to , but would like it to happen automatically as you finish typing sqrt. You can set keymaps, but I need to attempt a completion every time a letter is written. This does not seem to be possible?

PaddiM8 avatar Jun 09 '20 08:06 PaddiM8

Nop and currently input Validator does not support validate_while_typing and can't fix input:

For auto-correction like a missing closing quote or to reject invalid char while typing, the input will be mutable (TODO).

gwenn avatar Jun 09 '20 19:06 gwenn

Ah yeah, I see.

PaddiM8 avatar Jun 10 '20 08:06 PaddiM8