zf icon indicating copy to clipboard operation
zf copied to clipboard

Support for fzf syntax

Open bondzula opened this issue 2 years ago • 4 comments

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

bondzula avatar Jul 29 '23 11:07 bondzula

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.

natecraddock avatar Aug 03 '23 00:08 natecraddock

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

bondzula avatar Aug 18 '23 08:08 bondzula

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.

natecraddock avatar Aug 19 '23 19:08 natecraddock

Sounds good, Thank you!

bondzula avatar Aug 20 '23 12:08 bondzula