natecraddock / zf

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

Feature request: Custom deliminator #35

Closed pbsds closed 1 year ago

pbsds commented 1 year ago

a possible use case could be to filter nested class names or attributes, i.e. strings on the form foo.bar.baz.

Would you consider adding support for configuring the deliminator?

natecraddock commented 1 year ago

Yep! I can add this to the next release.

I've actually had support for arbitrary delimiters in the code since the beginning, I just haven't exposed it as a flag yet.

https://github.com/natecraddock/zf/blob/6624df5799490efabcde42bd50123ba5b720051c/src/filter.zig#L14-L22

I expect there would only be a need for single byte delimiters.