taskedit

package
v0.0.0-...-5375a1e Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 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 KeyMap

type KeyMap struct {
	NextField key.Binding
	PrevField key.Binding

	Save   key.Binding
	Enter  key.Binding
	Cancel key.Binding
}

func DefaultKeyMap

func DefaultKeyMap() KeyMap

func (KeyMap) FullHelp

func (m KeyMap) FullHelp() [][]key.Binding

func (KeyMap) ShortHelp

func (m KeyMap) ShortHelp() []key.Binding

type Model

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

func New

func New() Model

func (*Model) Focus

func (m *Model) Focus() tea.Cmd

func (*Model) SetMaxSize

func (m *Model) SetMaxSize(maxWidth, maxHeight int)

func (*Model) SetTask

func (m *Model) SetTask(task pomo.Task)

func (Model) Task

func (m Model) Task() pomo.Task

func (Model) Update

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

func (Model) View

func (m Model) View() string

type Styles

type Styles struct {
	Frame lipgloss.Style
}

func DefaultStyles

func DefaultStyles() Styles

Jump to

Keyboard shortcuts

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