mokkabonna / inquirer-autocomplete-prompt

Autocomplete prompt for inquirer
ISC License
354 stars 82 forks source link

suggestOnly and backspace to change your mind #74

Open wolfchimneyrock opened 6 years ago

wolfchimneyrock commented 6 years ago

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.

mokkabonna commented 4 years ago

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

GGomez99 commented 9 months ago

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