camdencheek / fre

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

Plans on generalizing to arbitrary input #17

Open AntonHermann opened 3 years ago

AntonHermann commented 3 years ago

Hey :) I really like the idea of fre and this frecency algorithm.

I would like to use the same algorithm for other stuff as well, not just directory and file tracking. In particular, at the moment I'm using raw fzf for my command run script and would like to include your frecency algorithm there as well.

Are there any plans to generalize fre to arbitrary input? Or do you know of a tool that already does this?

Thank you very much :)

AntonHermann commented 3 years ago

Whoops, looking into the code I realized that what I asked for is already possible 🤦

Maybe it could be clarified that fre isn't limited to files/directories and that this is merely it's primary use case? That wasn't that obvious for me.

camdencheek commented 3 years ago

Hi @AntonHermann! Glad to hear you find it useful. Sorry I'm just getting back to you -- somehow I missed the notification for this.

Anyway -- I totally agree that it's worth clarifying. I personally only use it for files and directories, but would love to add an example of how to use it for fzf commands as well. Do you have an example of this that I could add to the README examples?