Expand description
Usage statistics and remembered placeholder values.
Kept apart from the definition files on purpose. Definitions are meant to be tracked in the user’s own git repository; counters that change on every keystroke would make that repository permanently dirty and conflict on every sync.
Ranking uses frecency: each use adds a point, and points decay exponentially. Only the running score and the moment it was last touched are stored, so the cost is two columns per entry rather than a use history.
Structs§
Constants§
- HALF_
LIFE - How long a score takes to halve, in seconds.
- NEW_
ENTRY_ BONUS - Score a freshly saved command starts at, worth roughly three recent uses.