inquirer-autocomplete-prompt icon indicating copy to clipboard operation
inquirer-autocomplete-prompt copied to clipboard

suggestOnly and backspace to change your mind

Open wolfchimneyrock opened this issue 7 years ago • 2 comments
trafficstars

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.

wolfchimneyrock avatar Oct 25 '18 21:10 wolfchimneyrock

Yeah that is a clear bug. Wrong position of the cursor.

mokkabonna avatar Aug 31 '20 17:08 mokkabonna

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

GGomez99 avatar Feb 16 '24 15:02 GGomez99