Expand description
Every command the editor can run, as data.
An action has two halves. The documentable half (its id, label, icon and
one-line description) is static data, and lives here beside the
presets/*.yaml bindings that name the same ids. The behavioural half
(what running it does) closes over Svelte runes and lives in
frontend/src/actions/. The two join by id.
Actions group one file per category (actions/edit.rs, actions/view.rs,
…), each a const ACTIONS table plus one register(): the same
many-items-per-file shape config/sections/ uses, and the shape GIMP’s
per-domain GimpActionEntry tables use. build.rs discovers the files, so
a new category is a new file and nothing else.
Structs§
- Action
Category - What each file in
actions/returns from itsregister(): a category’s id and every action in it. A category is a group rather than an item, so one file carries many actions and states the grouping once. - Action
Def - One action’s documentation.
Constants§
- CATALOG_
ID - Id of the catalog this registry projects into.
Functions§
- catalog
- The action catalog: every registered action, grouped by category.