-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Sort completions #923
Comments
They are sorted - just not in the way you might expect! They are sorted on length then on alphabetical ordering. I think this is a bug. |
Ah, sorting is done with |
...I did not notice this. I think that it's because the shorter strings are more likely to fuzzy-match, whereas in this case, it's probably better to have them just be sorted alphabetically if it's a prefix match. |
The list is sorted by length. The issue here is in determining the distance ("goodness") of a match. For a fuzzy match, i.e.: Are there circumstances where this is not so? Maybe for prefix matches? |
Let's try sorting prefix match strings alphabetically, and fuzzy match strings by length, and see how weird that is. |
Implemented here: c38a40d . let's see how this feels. Thanks for reporting this! |
Other completions are still sorted by length. fish-shell#923
Current sorting (none):
Probably would be helpful to sort them, although, this can potentially cause performance problems for large lists.
The text was updated successfully, but these errors were encountered: