help

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model is a help overlay that lists keybindings in a scrollable popup.

func New

func New(t theme.Theme) Model

New creates a new help overlay model.

func (Model) ModalView

func (m Model) ModalView() string

ModalView renders only the boxed help popup content.

func (*Model) SetSize

func (m *Model) SetSize(w, h int)

SetSize updates the overlay dimensions and rebuilds the viewport content.

func (Model) Update

func (m Model) Update(msg tea.Msg) (Model, bool)

Update handles messages — dismiss keys close, everything else scrolls.

func (Model) View

func (m Model) View() string

View renders the help overlay as a centered floating panel.

Jump to

Keyboard shortcuts

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