feat: integrate FuzzyWuzzy for enhanced fuzzy search & sanitize query#4
Merged
wizpizz merged 3 commits intowizpizz:masterfrom Aug 11, 2025
deltazefiro:master
Merged
feat: integrate FuzzyWuzzy for enhanced fuzzy search & sanitize query#4wizpizz merged 3 commits intowizpizz:masterfrom deltazefiro:master
wizpizz merged 3 commits intowizpizz:masterfrom
deltazefiro:master
Conversation
Owner
Contributor
Author
|
Oh I see.
Indeed! The Levenshtein distance does not take those into consideration. It only counts "edits" between strings.
I've updated the code to boost:
I do not have many apps installed so the results both before and after the boost seem reasonably fine. |
Owner
|
LGTM, thanks! |
wizpizz
approved these changes
Aug 11, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Enhanced the fuzzy search.
Integrate FuzzyWuzzy. Replace the naive implementation with FuzzyWuzzy that utilizes the Levenshtein distance algorithm. This will allow the search to intelligently handle a certain number of character substitutions, insertions, or deletions, making it tolerant of common typos.
Sanitize the Search Query. Before performing the search, pre-process the input query to remove all spaces and single quote marks. This step will ensure that IME-generated artifacts do not interfere with search results.
Issue: closes #3
Tested on op13 with launcher v15.8.17. Works pretty fine with no noticeable performance issue.
I'm kinda vibe coding this so may need some more time to test it out. Marked as draft for now.