fix: accurately locate the match within the suggestion value#903
fix: accurately locate the match within the suggestion value#903ysthakur merged 7 commits intonushell:mainfrom
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 |
ysthakur
left a comment
There was a problem hiding this comment.
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 |
ysthakur
left a comment
There was a problem hiding this comment.
Just tested the columnar menu and it works. Thanks for your work on this.
before
after