natecraddock / zf

a commandline fuzzy finder and zig package designed for filtering filepaths
MIT License
451 stars 14 forks source link

Support for fzf syntax #50

Open bondzula opened 1 year ago

bondzula commented 1 year ago

Hi, I've been using zf through telescope for a couple of months now, and I love it for both speed and file name matching priority. I'm just wondering if fzf compatible syntax for pattern matching is planed and or even possible? Full disclosure: I use it rarely, but occasionally, it is helpful to have.

For reference, telescope-fzf-native.nvim has a nice reference table of the syntax:

image

natecraddock commented 1 year ago

Hi @bondzula sorry for the delay on replying.

Right now I'm going to say maybe. I tried to design zf so that features like fzf search syntax aren't required. For example, instead of needing to end a query with $ it should just match filenames with better priority. Or if you want to match the beginning of a path, usually adding in a / at some point would help.

But I want to balance simplicity with useful features. I'll think about this more.

Something that may help motivate me is if you can give me specific examples where this would be useful.

bondzula commented 1 year ago

Hi, I somehow missed this notification.

I've mainly used this syntax when exploring a new project, where maybe I want to see all files of certain file type, so $ come in handy. But I guess you are right, just tried .yml {search} and it does a good job of filtering it down

natecraddock commented 1 year ago

No worries! Since you noticed the .yml {search} worked well enough, I'm not going to prioritize this feature. But I'll keep the issue open for now to see if anyone else has a compelling use case.

bondzula commented 1 year ago

Sounds good, Thank you!