statusbar

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Height = 1

Height represents the height of the statusbar.

View Source
const ModeDefault = "Default"
View Source
const ModeNew = "New"
View Source
const ModeSearch = "Search"

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	ui.Focusable
	ui.Resizable
	// contains filtered or unexported fields
}

Model is the statusbar model. it was inspired by teacup https://github.com/knipferrc/teacup/blob/main/statusbar/statusbar.go

func NewDefault

func NewDefault() Model

func (*Model) Error

func (m *Model) Error(msg string)

func (*Model) FocusInputNew

func (m *Model) FocusInputNew()

func (*Model) FocusInputSearch

func (m *Model) FocusInputSearch()

func (Model) GetInput

func (m Model) GetInput() textinput.Model

func (Model) GetInputText

func (m Model) GetInputText() string

func (Model) GetMode

func (m Model) GetMode() string

func (*Model) Info

func (m *Model) Info(msg string)

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) Resize

func (m *Model) Resize(width, _ int)

func (*Model) SetInfo1

func (m *Model) SetInfo1(msg string)

func (*Model) SetInfo2

func (m *Model) SetInfo2(msg string)

func (*Model) SetMessage

func (m *Model) SetMessage(message models.StatusMsg)

func (*Model) SetMode

func (m *Model) SetMode(mode string)

func (*Model) StartSpinner

func (m *Model) StartSpinner() tea.Msg

func (*Model) StopSpinner

func (m *Model) StopSpinner()

func (Model) Update

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

func (Model) UpdateTyped

func (m Model) UpdateTyped(msg tea.Msg) (Model, tea.Cmd)

func (Model) View

func (m Model) View() string

func (*Model) Warn

func (m *Model) Warn(msg string)

Jump to

Keyboard shortcuts

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