natecraddock / zf

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

add simple variants of all public module functions #27

Open natecraddock opened 1 year ago

natecraddock commented 1 year ago

The module functions are becoming a bit complicated (which is fine). This is to maximize the performance of zf. But there may be cases when a simple variant is preferred (small lists to filter, for example).

So each function can offer a simple variant, and then an extended version with more parameters for maximal control

natecraddock commented 1 year ago

After thinking about this longer I'm on the fence. I don't personally need it, so I think I'll only add it if someone expresses interest.

natecraddock commented 1 month ago

A good idea is a rankStrings function that accepts an allocator, a slice of strings, a query (and maybe other params) that can be used in more simple cases