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

Display full search matches first #85

Closed
AbrilRBS opened this issue Aug 17, 2023 · 2 comments
Closed

Display full search matches first #85

AbrilRBS opened this issue Aug 17, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@AbrilRBS
Copy link
Member

When searching for a recipe, it would be great if the recipe that fully matches the name is displayed first, ie, have glib placed first here:
Captura de pantalla 2023-08-17 a las 14 06 01

@AbrilRBS AbrilRBS added the enhancement New feature or request label Aug 17, 2023
@acano15
Copy link

acano15 commented Aug 23, 2023

It may be a superficial observation, yet I appreciated the feature in the previous version where it offered suggestions while typing. This feature proves valuable for lengthy or intricate library names, and it aids in the discovery of new libraries as well.

@prince-chrismc
Copy link

There is a standard algorithm for this

the Levenshtein distance is a string metric for measuring the difference between two sequences.

https://stackoverflow.com/a/64932433/8480874

https://medium.com/@ethannam/understanding-the-levenshtein-distance-equation-for-beginners-c4285a5604f0

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

No branches or pull requests

4 participants