Summary
Implement or document a "presentation mode" pattern that combines (a) an info bar TextView with regions for slide indices and SetHighlightedFunc to switch pages, and (b) slide-level SetDoneFunc/onDone to advance on Enter/Escape. This is a composite UX pattern from the tview presentation demo.
Background
Discovered while planning a tview presentation demo implementation via tviewyaml. The main app uses a Pages root with slide content; a bottom info bar has regions; when the highlighted region changes, the app switches pages. Slides use SetDoneFunc to advance.
Demo Usage
Info bar region-based page switching + slide-level SetDoneFunc; may need dedicated presentation mode.
Proposed Approach
Relevant Files
config/types.go – optional presentation type
builder/builder.go – presentation root builder
example/config/ – presentation example
docs/ – presentation mode recipe or guide
Summary
Implement or document a "presentation mode" pattern that combines (a) an info bar TextView with regions for slide indices and
SetHighlightedFuncto switch pages, and (b) slide-levelSetDoneFunc/onDoneto advance on Enter/Escape. This is a composite UX pattern from the tview presentation demo.Background
Discovered while planning a tview presentation demo implementation via tviewyaml. The main app uses a Pages root with slide content; a bottom info bar has regions; when the highlighted region changes, the app switches pages. Slides use SetDoneFunc to advance.
Demo Usage
Info bar region-based page switching + slide-level SetDoneFunc; may need dedicated presentation mode.
Proposed Approach
type: presentationroot or page config that wires up info bar + pages + key bindingsRelevant Files
config/types.go– optionalpresentationtypebuilder/builder.go– presentation root builderexample/config/– presentation exampledocs/– presentation mode recipe or guide