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

Pressing Tab multiple times does not cycle through the values of the autocomplete function #53

Open
robopzet opened this issue Jan 10, 2022 · 2 comments

Comments

@robopzet
Copy link

Don't know if this is a bug, but it is not what I expected.

My code uses a prompt with an autocomplete function. After entering some text, pressing Tab shows the first result that this function returns.

Press Tab again and the result is not the second result from this list. Instead, the second item from the unfiltered list is shown.

I noticed the autocomplete function is called twice when pressing Tab for the second time. The first time the selection contains the result returned when handling the first Tab and once with an empty parameter.

@Vpet95
Copy link

Vpet95 commented Dec 11, 2022

Hi @robopzet - this repo seems to be inactive at this time.
I wrote a little modernized port called prompt-sync-plus. This is one of the issues it addresses.

@robopzet
Copy link
Author

@Vpet95: I created my own version from this package when a vulnerability in an older dependency was detected.

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

2 participants