Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Model ¶
type Model struct { Err error Width int Height int Y int // contains filtered or unexported fields }
func Update ¶
Update runs the update loop with default keybindings. To define your own keybindings use the methods on Model.
func (*Model) HalfViewDown ¶
func (m *Model) HalfViewDown()
HalfViewDown moves the view down by half the height of the viewport.
func (*Model) HalfViewUp ¶
func (m *Model) HalfViewUp()
HalfViewUp moves the view up by half the height of the viewport.
func (Model) ScrollPercent ¶
Scrollpercent returns the amount scrolled as a float between 0 and 1.
func (*Model) SetContent ¶
SetContent set the pager's text content.
Click to show internal directories.
Click to hide internal directories.