Clear Recent Commands (help.clearRecentCommands) now empties the pick
counts that rank the results, with the recent list and the saved ids.
command_list reports it as enabled while a pick or a count is saved.
- A pick from the search is counted when Recent Commands records it,
before it runs, so a pick of Clear Recent Commands is cleared with
the rest and is not counted afterward. A refused pick puts the counts
back as it puts the list back.
- The command's params text, docs/mcp.md and the two lines in
docs/target-app-parity.md say so; crates/mcp/src/ui_catalog.rs
carries the same params text.
- Test: clear_recent_commands_also_clears_the_pick_counts.
A pick is now counted only when Recent Commands records it: a refused
pick and a pick of Search Commands… are not counted, and a pick that
opens a dialog is. The test that counts an effect pick picks it with
art selected, since the effect is dimmed when nothing is selected.
A pick is recorded in Recent Commands before it runs again, as before
the last commit, so a command that changes the list sees it with the
pick already in it. When the pick is refused, the list goes back to
what it was.
- A tool pick that fails shows the error in the status line and counts
as refused, so it is not recorded.
- A pick whose menu item is dimmed but that still opens a dialog counts
as opening it and is recorded.
- The outcome test also covers a dimmed effect, a dimmed plug-in
filter, a panel the docking layout can't show and a tool that can't
be chosen.
- The French help line reads "Tapez pour rechercher des commandes, des
outils, des panneaux et des effets", like the other palette rows.
An empty search lists up to eight recent picks under a Recent heading.
With no picks yet it shows a dimmed line, "Type to search commands,
tools, panels and effects", with a row in every catalog. The Recent
Commands button's list also shows up to eight picks, and the saved
list holds at most 20 ids.
A pick now reports whether it ran, opened a dialog or was refused.
Only a pick that ran or opened a dialog is recorded in Recent
Commands, so a canceled dialog's command stays there. A pick that is
refused because its menu item is dimmed, or because its panel can't be
shown in Presentation Mode, is no longer recorded; a refused recent
pick keeps its place.
As the first recent pick, the palette's own toggle made Enter on an
empty search close the palette and open it again. A pick of it is no
longer recorded, and one saved earlier is not listed.
- The rows of the empty search's list take the room the result count
used to take, and the No recent commands line keeps the count's
spacing.
- The palette tests' list of shown results follows the empty search.
- Tests: the toggle is not recorded or listed; a click on a lower
recent pick runs it and moves it first.
When all 200 counted commands had 2 picks or more, each new command
entered at 1 pick and the next new command removed it, so it could not
build up a count. A new command now removes one of the 100 commands
picked longest ago: the one with the fewest picks, of those the one
picked longest ago.