-
Notifications
You must be signed in to change notification settings - Fork 169
fix: accurately locate the match within the suggestion value #903
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
Conversation
Signed-off-by: divanshu-go <divanshugrover2009@gmail.com>
There's this long existing PR #798 😅, which handles fuzzy matching as well. |
@blindFS What can I do that in case ? Also, Is anything wrong with this PR's code ? |
Honestly, IDK, I think there's a refactoring of that PR going on, @ysthakur.
I'm not sure how this looks for fuzzy matched texts. And you probably need to add the same fix to ide_menu as well. Oh, we were planning to add an optional field for matched-span info to |
Signed-off-by: divanshu-go <divanshugrover2009@gmail.com>
@blindFS |
@blindFS This PR is opened in favour to handle this issue antinomyhq/forge#420 The previous implementation in columnar_menu.rs of func so instead of this I edited that func |
Signed-off-by: divanshu-go <divanshugrover2009@gmail.com>
Please excuse my ignorance, but what does the |
in our cli (which is a shell) , when the user press
yes , and then it must search all the files having name
I was in a folder named
its clearly a path completion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this! As blindFS mentioned, #798 is still being worked on, so this will be good to have in the meantime (I do plan to update #798 soon™). It's fine that this doesn't handle fuzzily matched suggestions, since it's better than what we have now.
I'd recommend testing out your changes with descriptions added to the suggestions (you can edit the DefaultCompleter
to add a dummy description to each Suggestion
or something like that).
Signed-off-by: divanshu-go <divanshugrover2009@gmail.com>
Signed-off-by: divanshu-go <divanshugrover2009@gmail.com>
Signed-off-by: divanshu-go <divanshugrover2009@gmail.com>
@ysthakur I have did the code changes required by You |
Yup I saw you updated the PR, code looks good to me but I haven't gotten around to running it on my computer again. Give me a day or two |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just tested the columnar menu and it works. Thanks for your work on this.
before
after