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

Implement an option to set the window at the beginning of the list #126

Closed
r-darwish opened this issue Oct 30, 2021 · 3 comments
Closed
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@r-darwish
Copy link
Contributor

No description provided.

@ktr0731
Copy link
Owner

ktr0731 commented Nov 8, 2021

I'm sorry, I couldn't know what you want to support...
Could you provide more described information (what and why) for the feature?

@r-darwish
Copy link
Contributor Author

Sure. I develop IDNT on the top of this library, and as you can see in this screenshot, once you get the list your cursor is at the last entry instead of the first one. So instead of scrolling the list down the user need to scroll it up, and every time they press tab to select an entry, the cursor goes down again. It would make sense to have an option that points the cursor on the first entry instead of the last one.

@ktr0731
Copy link
Owner

ktr0731 commented Nov 9, 2021

I understand. Thanks for the clear explanation!
I think it makes sense to provide such a feature.
Although you can sort the input list in reverse order in Go code when the input is not a stream, it's not an efficient way when the input is a stream or large.

@ktr0731 ktr0731 added enhancement New feature or request help wanted Extra attention is needed labels Nov 9, 2021
r-darwish added a commit to r-darwish/go-fuzzyfinder that referenced this issue Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants