promptui icon indicating copy to clipboard operation
promptui copied to clipboard

Replace input text while typing

Open mochi-co opened this issue 1 year ago • 0 comments

Hi all

I was wondering if there was a way to replace the text inputted, on keyup event.

As a simple example - I type "abc", I would like to run the whole string through a function, and replace it with the returned value (such as uppercase): "ABC" as I type it.

Many thanks

mochi-co avatar Jan 20 '23 12:01 mochi-co