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

Candidates customized order lost when tabbing through candidates #763

Closed
bshtv opened this issue Dec 23, 2021 · 1 comment
Closed

Candidates customized order lost when tabbing through candidates #763

bshtv opened this issue Dec 23, 2021 · 1 comment
Milestone

Comments

@bshtv
Copy link

bshtv commented Dec 23, 2021

Hello guys!

As far as I understand based on this feature it's possible to customize candidates order. (https://github.com/jline/jline3/pull/678/files) However, when completion candidates are rendered for the 1st time I'm pressing tab to pick something and the order flips to natural sorting.
E.g. 1st customized render c, b, a, then tab+tab and a, b, c.

Is there a chance to preserve ordering based on candidate.sort or pass comparator?

@mattirn mattirn changed the title Question: customized candidates order when tabbing through candidates Customized candidates order lost when tabbing through candidates Dec 23, 2021
@mattirn mattirn changed the title Customized candidates order lost when tabbing through candidates Candidates customized order lost when tabbing through candidates Dec 23, 2021
@bshtv
Copy link
Author

bshtv commented Jan 10, 2022

Thank you so much! May you also publish the change or do you have mb planned publish date?
@mattirn

@gnodet gnodet added this to the 3.22.0 milestone Jan 16, 2023
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