tomrijndorp / vscode-finditfaster

Find it, but faster! Fast file search for VS Code.
MIT License
299 stars 29 forks source link

Suggestion: Find in single active file #26

Open rkpatel33 opened 1 year ago

rkpatel33 commented 1 year ago

I wondering if this was considered and not implemented for any reason? It would be a nice addition and make this have the same features as the FZF plugin available for Neovim, which has a buffer search mode.

(Again, this is a game changer for me and making me come back to VsCode from Nvim.)

tomrijndorp commented 1 year ago

I'm not sure what this means, it sounds like you're describing "search text", that is, Ctrl+F so clearly I must be misunderstanding something :) Do you have a reference that shows me what the feature is about? I tried searching but all the search terms are quite generic so if you can pass me a link I'd be sure we're talking about the same thing. Thanks!

rkpatel33 commented 1 year ago

You are right, ctrl-f will do this, but the benefit is of this is you get the list of all hits in a single file, as well as the code preview for each hit.

For example, here is Neovim FZF's "buffer search", which is what I am talking about. It's a nice UX.

image
tomrijndorp commented 1 year ago

Ah I see, thanks for the explanation! I don't have a ton of time to work on the extension right now, but I'm going to leave this ticket open as a nice to have and might be able to give this a try later. Thanks for the suggestion!

wroyca commented 1 year ago

I second this, fantastic extension, I would love to have fzf in the current active file too, I was surprised to find out it wasn't already possible :)

rkpatel33 commented 1 year ago

If I have some time I will make an attempt at making the adjustment in a PR.

sahellebusch commented 10 months ago

This feature would be awesome 😄