footer

package
v0.0.0-...-99b4a15 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cancel

func Cancel() tea.Msg

func Submit

func Submit(action string) tea.Cmd

Types

type CancelMsg

type CancelMsg struct{}

CancelMsg cancels the current action.

type Model

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

func New

func New() Model

func (*Model) Blur

func (m *Model) Blur()

func (*Model) Clear

func (m *Model) Clear()

func (*Model) Focus

func (m *Model) Focus()

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) ShowError

func (m *Model) ShowError(err string)

func (*Model) ShowStatus

func (m *Model) ShowStatus(status string)

func (Model) Update

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

func (Model) View

func (m Model) View() string

type OpenBufferMsg

type OpenBufferMsg string

type SubmitMsg

type SubmitMsg string

SubmitMsg is a string such as "w foo.txt" containing an action and arguments

func (SubmitMsg) Decode

func (m SubmitMsg) Decode() (string, []string)

Decode the text, returning the action and its arguments (if any)

Jump to

Keyboard shortcuts

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