statusbar

package
v0.0.0-...-a02a1e0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action int
const (
	ActionNeutral Action = iota
	ActionCreate
	ActionEdit
	ActionDelete
)

type Mode

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

func NewMode

func NewMode(text string, action Action) Mode

type Model

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

func New

func New(ctx *context.ProgramContext, mode Mode, nd notedown.Client) *Model

func (*Model) Init

func (m *Model) Init() (tea.Model, tea.Cmd)

func (*Model) Margin

func (m *Model) Margin(margin ...int) *Model

func (*Model) SetMessage

func (m *Model) SetMessage(message string, until time.Time, color lipgloss.Color) *Model

func (*Model) Update

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

func (*Model) View

func (m *Model) View() string

func (*Model) Width

func (m *Model) Width(width int) *Model

Jump to

Keyboard shortcuts

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