camdencheek / fre

Command line frecency tracking
MIT License
121 stars 8 forks source link

fre --stat: allow to customize the number of digits shown #22

Closed xsteve closed 8 months ago

xsteve commented 9 months ago

I use fre to sort my file bookmarks. It is a really useful tool for me. When I have not visited some files for a longer time period the shown score is 0.000 It would be nice to allow showing more than 3 digits. That way 0.000 would be e.g. shown as 0.00004 This could be done by e.g adding the option --stat-digits 5 (defaulting to the current value 3)

camdencheek commented 9 months ago

Hey @xsteve! Glad to hear you find fre useful 🙂 Do you think it's worth making the precision configurable, or should I just bump up the precision to, say, 5 digits?

xsteve commented 9 months ago

Thanks for getting back to me. I am fine with both. Adding an option would be better for backwards compatibility. But that is not important for me...

camdencheek commented 8 months ago

Just published v0.4.0, which notably includes the --stat-digits option. Thanks for reaching out!