Skip to main content

Module outcome

Module outcome 

Source
Expand description

Picker accept outcomes – typed effects the source generator emits on <CR> for the host to apply.

Bounded enum, scoped to “what a picker can ask the host to do.” Source generators emit one outcome; the host’s translator (App::apply_picker_outcome) pattern-matches into the appropriate Effect / App-state mutation. Plugin sources (Phase 7) emit the same enum over WIT – the variant set is the trait surface plugin authors design against.

Enums§

FillTarget
YR.3: where a PickerAcceptOutcome::FillCaller puts its text.
OpenTarget
Issue #32 (2026-05-22): where a picker’s file-opening outcome should land. <CR> uses Default; <C-s> / <C-v> / <C-t> override to a split / vsplit / new tab.
PickerAcceptOutcome
Result of PickerSourceGenerator::accept. The host pattern-matches and runs the corresponding mutation.
PickerPreviewOutcome
MG.54: result of PickerSourceGenerator::preview, the hook that fires as the SELECTION moves rather than on <CR>.