Skip to main content

STEP_PASTE

Constant STEP_PASTE 

Source
pub const STEP_PASTE: StepId;
Expand description

A paste ({ target, slot, format, transform, parts, if_rev, dry_run, text, origin }): a before-hook vetoes it or redirects it (another target, another format); its default takes the owner’s item (or the external text), sanitises external content, negotiates the format, runs the transform and has the target apply it as one undo step. Its result: the plan, what was lost, the target’s changes.