Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestOnly and backspace to change your mind #74

Open
wolfchimneyrock opened this issue Oct 25, 2018 · 2 comments
Open

suggestOnly and backspace to change your mind #74

wolfchimneyrock opened this issue Oct 25, 2018 · 2 comments

Comments

@wolfchimneyrock
Copy link

wolfchimneyrock commented Oct 25, 2018

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
Copy link
Owner

mokkabonna commented Aug 31, 2020

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

kapalex added a commit to kapalex/inquirer-autocomplete-prompt that referenced this issue Feb 7, 2021
ChesterYue added a commit to ChesterYue/inquirer-autocomplete-prompt that referenced this issue Mar 5, 2023
@GGomez99
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants