-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature Request: Fuzzy matching for teleports and subdirectories #23
Comments
I think this one can go in several directions. The inspiration originally comes from Sublime Texts excellent "Goto Anywhere" where you just haphazardly type something that is close to correct and gets you there. That is the inspiration at least, but ideas are welcome. I believe it would be smart to start with something simple, where the actual fuzzy matching is pluggable (for example just matching prefixes of subdirectories so "aaa/bbb/ccc" would shorten to "a/b/c"). |
Perhaps start even more simple where the "normal" fuzzy matching is just straight up: def fuzzy_matching_normal(teleport: str):
return teleport and make sure that |
Here I am just listing a few ideas I have for different fuzzy matchers:
|
So the different PRs for this should be something like this:
|
Essentially we are trying to solve the Approximate String Matching problem. |
The Jaro-Winkler algorithm looks quite suitable. It seems that a lot of these Edit Distance algorithms have a threshold of some sort and the Jaro-Winkler will normalize the value of the match between 0 and 1, so this makes the configuration more intuitive. For example |
Assuming I have
~/Documents
and the teleporthome:~
thengoto hom/Diocuemants
should take me there. Perhaps hide it behind some configuration?For example
The text was updated successfully, but these errors were encountered: