joshmu / periscope

Ripgrep powered peek search in VSCode 🫧
Other
10 stars 3 forks source link

Option for fuzzy search? #50

Open prasoon2211 opened 1 month ago

prasoon2211 commented 1 month ago

Hi, thanks a lot for this extension! I far prefer it to VSCode's inbuilt project-level search.

One thing that would be extremely helpful is fuzzy search - the type you can do with fzf. I know ripgrep doesn't support fuzzy search natively and I wasn't able to figure out a rgQueryParam that could somehow make fuzzy search work with existing ripgrep options.

One possible option would be to somehow bake in fzf into the tool. In any case, this would be very helpful :)

joshmu commented 1 month ago

Hey @prasoon2211 I looked in to bringing in fzf when I first developed Periscope and then couldn't get it to behave how I wanted. In the end I found ripgrep far more useful for me.

I'm always open to a PR if you have ideas or feel free to provide references and perhaps myself or someone in the community can take it up.

I don't necessarily fuzzy search but when I am not sure I just add wildcards '.*' within my query.