inquirer-autocomplete-prompt
inquirer-autocomplete-prompt copied to clipboard
suggestOnly and backspace to change your mind
Hi, I am seeing a weird behavior using suggestOnly=true.
suppose I start typing and autocomplete returns a list of options, and then I hit <TAB> to pick one. If I decide to change my answer, I have to type <BACKSPACE> several times before it actually starts modifying the live contents of the prompt.
I would expect the desired behavior would be for the live input string to be transformed to the chosen autocomplete value when pressing <TAB>, then upon receiving a <BACKSPACE> to immediately make the live value start erasing the last character.
Yeah that is a clear bug. Wrong position of the cursor.
Hey ! Any news on this bugfix ? I still have this issue on v2.0.1 and I see an opened pull request since March 2023 from @ChesterYue