-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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
- Depends on feat: support SetDoneFunc/onDone on primitives (TextView, InputField, Table) #5 (onDone) and feat: support SetHighlightedFunc for TextView region-based navigation #6 (SetHighlightedFunc)
- Option A: Add
type: presentationroot or page config that wires up info bar + pages + key bindings - Option B: Provide template helpers or example YAML that users copy to achieve the pattern
- Option C: Document as a recipe combining existing features once feat: support SetDoneFunc/onDone on primitives (TextView, InputField, Table) #5 and feat: support SetHighlightedFunc for TextView region-based navigation #6 are implemented
Relevant Files
config/types.go– optionalpresentationtypebuilder/builder.go– presentation root builderexample/config/– presentation exampledocs/– presentation mode recipe or guide
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels