statusbar

package
v0.0.0-...-968ba5a Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandInput

type CommandInput string

CommandInput is an entry from the keyboard that is mapped to an action. For example, ":q" to quit, lib. The action is not necessarily performed by statusbar. We're only using this type as a state update message type.

statusbar.Update(commandInput(":q"))

This is a tea.Msg type

type Model

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

func NewStatusBar

func NewStatusBar() Model

func (Model) Update

func (model Model) Update(msg tea.Msg) (Model, tea.Cmd)

func (Model) View

func (model Model) View() string

Jump to

Keyboard shortcuts

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