status

package
v0.3.23 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 9 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 represents state of status bar.

Status bar displays log messages and shows navigation keys. Layout of status bar looks like: [logs] <spacer> [keymap hints]

func New

func New(config config.Config) *Model

func (*Model) GetHeight

func (m *Model) GetHeight() int

func (*Model) GetWidth

func (m *Model) GetWidth() int

func (*Model) Init added in v0.3.22

func (*Model) Init() tea.Cmd

func (*Model) SetHeight

func (m *Model) SetHeight(height int)

func (*Model) SetWidth

func (m *Model) SetWidth(width int)

func (*Model) Update

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

func (*Model) View

func (m *Model) View() string

Jump to

Keyboard shortcuts

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