statusbar

package
v3.86.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: AGPL-3.0 Imports: 4 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 interface {
	StatusBarValue() string
	StatusBarInfo() string
}

Model is an interface that supports setting the status bar information.

type StatusBar

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

StatusBar is a status bar model.

func New

func New(c common.Common) *StatusBar

New creates a new status bar component.

func (*StatusBar) Init

func (s *StatusBar) Init() tea.Cmd

Init implements tea.Model.

func (*StatusBar) SetSize

func (s *StatusBar) SetSize(width, height int)

SetSize implements common.Component.

func (*StatusBar) Update

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

Update implements tea.Model.

func (*StatusBar) View

func (s *StatusBar) View() string

View implements tea.Model.

type StatusBarMsg

type StatusBarMsg struct {
	Key    string
	Value  string
	Info   string
	Branch string
}

StatusBarMsg is a message sent to the status bar.

Jump to

Keyboard shortcuts

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