Documentation ¶
Index ¶
- Constants
- type Model
- func (m *Model) CurrentPage() int
- func (m *Model) GetAllSlides() []string
- func (m Model) Init() tea.Cmd
- func (m *Model) Initial() error
- func (m *Model) PageSize() int
- func (m *Model) Render() string
- func (m *Model) SetPage(page int)
- func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m Model) View() string
Constants ¶
View Source
const (
SEP = "\n---\n" // sep of slides
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct { Filename string // markdown file name Theme string // markdown theme style Page int // current visit slide number, from 0 Slide string // current visit slide content (converted to markdown) Slides []string // all original slides Search search.Search // search input // contains filtered or unexported fields }
func (*Model) CurrentPage ¶
func (*Model) GetAllSlides ¶
GetAllSlides returns all original slides
Click to show internal directories.
Click to hide internal directories.