help

package
v0.0.0-...-73f9428 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateKeymap

func UpdateKeymap(keys keymap.KeyMap) tea.Cmd

Types

type Model

type Model struct {
	KeyMap *keymap.KeyMap
	Help   help.Model
}

func New

func New(opts ...Option) *Model

func (*Model) Init

func (m *Model) Init() tea.Cmd

Init is present to satisfy the Model interface. It's a no-op.

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (*Model, tea.Cmd)

Update processes messages and returns the updated Model and a command.

func (*Model) View

func (m *Model) View() string

View returns the string representation of the Model to be displayed on the screen.

type Option

type Option func(*Model)

func WithKeyMap

func WithKeyMap(keyMap *keymap.KeyMap) Option

type UpdateKeymapMsg

type UpdateKeymapMsg keymap.KeyMap

Jump to

Keyboard shortcuts

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