Skip to content

feat: presentation navigation model (region-based page switch + onDone) #17

@cassdeckard

Description

@cassdeckard

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions