Documentation ¶
Index ¶
- Constants
- type Model
- func (m *Model) Error(msg string)
- func (m *Model) FocusInputNew()
- func (m *Model) FocusInputSearch()
- func (m Model) GetInput() textinput.Model
- func (m Model) GetInputText() string
- func (m Model) GetMode() string
- func (m *Model) Info(msg string)
- func (m Model) Init() tea.Cmd
- func (m *Model) Resize(width, _ int)
- func (m *Model) SetInfo1(msg string)
- func (m *Model) SetInfo2(msg string)
- func (m *Model) SetMessage(message models.StatusMsg)
- func (m *Model) SetMode(mode string)
- func (m *Model) StartSpinner() tea.Msg
- func (m *Model) StopSpinner()
- func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m Model) UpdateTyped(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
- func (m *Model) Warn(msg string)
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 ¶
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) FocusInputNew ¶
func (m *Model) FocusInputNew()
func (*Model) FocusInputSearch ¶
func (m *Model) FocusInputSearch()
func (Model) GetInputText ¶
func (*Model) SetMessage ¶
func (*Model) StartSpinner ¶
func (*Model) StopSpinner ¶
func (m *Model) StopSpinner()
Click to show internal directories.
Click to hide internal directories.