Function: projectile--frecency-score
projectile--frecency-score is a byte-compiled function defined in
projectile.el.
Signature
(projectile--frecency-score ENTRY NOW)
Documentation
Compute the frecency score of ENTRY (COUNT . TIME) at time NOW.
The visit count decays with a half-life of two weeks, so a file visited often long ago eventually ranks below one visited recently.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--frecency-score (entry now)
"Compute the frecency score of ENTRY (COUNT . TIME) at time NOW.
The visit count decays with a half-life of two weeks, so a file
visited often long ago eventually ranks below one visited recently."
(let ((age-days (/ (max 0 (- now (cdr entry))) 86400.0)))
(* (car entry) (expt 0.5 (/ age-days 14.0)))))