Files
vectorcraft/docs
dotCooCoo 4c6125e2b8 Command Palette: commands picked often rank first within their grades
The palette now counts how many times each command is picked and ranks
the commands picked most often first among the results that match a
query as well as they do, also after they leave Recent Commands. A
count never lifts a result above one that matches the query better.

- Counts are compared in grades that double: grade 1 starts at 1 pick,
  grade 2 at 3, grade 3 at 7, up to grade 9. A command picked once
  ranks above the commands never picked. The grade ranks after the
  match grades and before the place among the recent picks.
- At most 200 commands are counted. A new one then removes the command
  with the fewest picks, of those the one picked longest ago. When a
  count reaches 1,000, every count is halved and commands left at 0
  are dropped.
- The counts are saved in ui.json as `command_uses`. A count above 999
  loads as 999, an unreadable entry is dropped, and of more than 200
  the most recent picks are kept. The web build keeps them for the
  session.
- The kept ranking of the last query is ranked again when a count
  changes.
2026-11-16 10:33:43 -08:00
..