Skip to main content

Module popup

Module popup 

Source
Expand description

Popup placement model – re-exported from lattice-core::ui::popup.

Moved from lattice-ui-tui in Phase 5.2 first wave.

Structs§

HelpMetadata
M.3.2.c.5: parsed-out metadata that travels alongside a freshly-constructed HelpBuffer. Bundles the data the help-mode owns per-buffer so the App can seed it into buffer_locals[id] at popup-open time. Replaces the links / anchors / highlights fields that used to live directly on HelpBuffer.
PopupSnapshot
Renderer-agnostic snapshot of a help popup’s content + view + metadata, pushed onto the <C-o> back-stack when following a help link swaps the popup’s content in place. PU-A.2: moved here from lattice-host — this is help’s back-stack history, not generic popup state, so it lives with the rest of the help model.

Enums§

PopupFocus
Whether opening a popup moves focus into it. Names the distinction the code already makes between the two overlay entry points, so any popup kind (help, ACP permission menu, LSP code-action list) picks a focus mode without dragging in help-buffer machinery.
PopupPlacement
Where the popup overlay anchors on screen.