mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-28 04:54:13 +02:00
07501d604e
Insert opens a small picker where the mouse is, with its search field focused. Type to search the whole collection, Enter to place the best hit (it is preselected), Up/Down to choose another, Esc to close. The chosen element goes into the usual placement mode, so it can be placed several times and repeated with A. With the field empty the picker shows a palette: the elements of a folder, as an icon grid. The palette is a folder rather than a setting or a file format. Subfolders are read in, the 01_/02_ filename prefixes the shipped collection already uses give the order, and sharing it is putting it in the company collection. Only the path is stored, "elementscollection/palette-path", defaulting to the user collection. It is read each time the picker opens, capped at 60 entries and three folder levels. The picker builds no second collection model. It asks the Collections panel's rankedSearch(), so both give the same results in the same order and startup is unchanged. "Insérer un élément…" is in the Édition menu, registered with ShortcutManager on Insert, which nothing else uses, and disabled with no folio open or on a read-only project. Discussion #676. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G2d2Zi8BfrYRPX88zhaoFG (cherry picked from commit 01e1e0303b96380e710da8d4bb2300b21d01e938)