natecraddock / zf

a commandline fuzzy finder and zig module designed for filtering filepaths
MIT License
469 stars 17 forks source link

Add a potentially new option `-0` for NUL-separated lines. #52

Closed legendre6891 closed 1 year ago

legendre6891 commented 1 year ago

Hi Nate - great piece of software!

I'm wondering if it's possible to add a new option -0 that is a shortcut to specifying -d'\0'? I guess there will be some cost for maintaining another option whose functionality already exists, so curious to get your thoughts on it.

Cheers

natecraddock commented 1 year ago

Hi! Thanks for the kind words!

I think this is quite reasonable! -0 is commonplace and adding a shorthand for an existing behavior should be really easy, especially because I just reworked my options parser.

I'll try to get this in soon. I plan on releasing a new version sometime this week