Expand description
Renderer-agnostic info popup data model.
Provides InfoPopup — the state for a centered floating overlay used by
:reg, :marks, :jumps, :changes, and the K-key LSP hover info path.
No rendering types are referenced; the TUI adapter lives in
hjkl-info-popup-tui.
§Quick start
use hjkl_info_popup::{InfoPopup, InfoPosition, ContentKind};
let popup = InfoPopup::new("registers", "\"a hello\n\"b world");
assert_eq!(popup.title, " registers ");
assert!(!popup.dismissed);
assert_eq!(popup.lines().count(), 2);Structs§
- Info
Popup - All state needed to display a centered info popup overlay.
- Info
Rect - Bounding rect returned by
geometry. - Info
Viewport - Viewport dimensions for popup placement.
Enums§
- Content
Kind - How the popup content should be interpreted by the renderer.
- Info
Position - How the popup is positioned within the available area.