components

package
v0.0.0-...-cf61b31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Normal mode = iota
	Command
	Toggle
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// Necessities
	Doc         *markdown.Document
	Application *tview.Application
	Pages       *tview.Pages
	Page        string

	// Windows
	Content   *tview.TextView
	Sidebar   *tview.TextView
	Statusbar *tview.TextView

	// Modes for keeping track of toggle
	Mode mode
	// contains filtered or unexported fields
}

View of app

func NewApp

func NewApp(doc *markdown.Document) *App

func (*App) AddHomePage

func (a *App) AddHomePage()

func (*App) HandleSidebar

func (a *App) HandleSidebar(event *tcell.EventKey) *tcell.EventKey

func (*App) SetContent

func (a *App) SetContent()

func (*App) SetKeymaps

func (a *App) SetKeymaps()

Quit, help, toggle

func (*App) SetSidebar

func (a *App) SetSidebar()

func (*App) SetStatusbar

func (a *App) SetStatusbar()

func (*App) ToggleFocus

func (a *App) ToggleFocus()

ToggleFocus

func (*App) Update

func (a *App) Update()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL