help

package
v0.0.0-...-692cb10 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DismissMsg

type DismissMsg struct{}

DismissMsg is sent when the user closes help.

type Model

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

Model is the help overlay.

func New

func New(keys config.KeyBindings, version string, width, height int) Model

New creates a new help overlay.

func (Model) BoxSize

func (m Model) BoxSize(screenWidth, screenHeight int) (int, int)

BoxSize returns desired box dimensions.

func (Model) Update

func (m Model) Update(msg tea.KeyMsg) (Model, tea.Cmd)

Update handles key events.

func (Model) View

func (m Model) View(th theme.Theme, screenWidth, screenHeight int) string

View renders the help overlay.

Jump to

Keyboard shortcuts

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