-
Notifications
You must be signed in to change notification settings - Fork 92
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
Fuzzy searching? #155
Comments
See here for a WIP implementation of a similar thing by @sizmailov: #149 I wanted to implement something like this (in particular the
With the change I did for #127, I finally have my hands free to add some config option allowing this (a similar case is wanting to search without |
Oh, that's interesting. I'm subscribing to that thread. Even though that's not complete fuzzy search, extracting words by camelCase or under_score separation still helps.
I did give it a quick try a few weeks ago. But I got stomped trying to understand the structure of the search data. The article you mentioned explains a lot!
Indeed! Does m.css come with the tools to debug the search data?
No worries, I fully understand the challenges of maintaining a project like this. Not expecting you to do anything. I started this thread because I had tried to provide a PR myself for such functionality, but unfortunatly I got rather lost in the data structure and how data was obtained.
Yes, we have a number of |
Yes, the
Unless I misremember how the lookup and result population behaves, that'll happen automagically when the get/set prefixes get stripped. Or .. you mean in the doxygen-generated output? Disable the |
I was wondering if there was any interesting in allowing fuzzy search?
Some of the background for this is that I mantain a C API where there's a lot of prefixes to keep things unique (product initials + "class" name + function name).
Right now it appear that the search works only on the start of each object being searched.
For example:
Compare to if I just type "editing":
I'm very fond of how Sublime Text (and many other editors like VSCode etc) let you search. In the example above, if I typed "tee" it would value the upper case letters in the symbols so that "TextEditingEvents" ranked high.
I have in the past experimented with fts_fuzzy_match for such functionality for some projects I'm working on. (https://github.com/forrestthewoods/lib_fts/) It's been working rather well.
More details on the logic here:
https://www.forrestthewoods.com/blog/reverse_engineering_sublime_texts_fuzzy_match/
Any interest in this?
The text was updated successfully, but these errors were encountered: