task

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteMsg

type DeleteMsg struct{}

type EnterEditMsg

type EnterEditMsg struct{}

type Styles

type Styles struct {
	// The Normal state.
	Normal subStyle

	// The selected item state.
	Selected subStyle

	// The dimmed state, for when the filter input is initially activated.
	Dimmed subStyle

	// Characters matching the current filter, if any.
	FilterMatch lipgloss.Style

	StatusMessage lipgloss.Style
}

type Task

type Task struct {
	TitleStr string
	DescStr  string
	DueDate  time.Time
	Done     bool
	// contains filtered or unexported fields
}

func New

func New() Task

func NewWithOptions

func NewWithOptions(title, desc string, duedate time.Time, done bool) Task

func (Task) Description

func (t Task) Description() string

func (Task) FilterValue

func (t Task) FilterValue() string

func (Task) GetID

func (t Task) GetID() uuid.UUID

func (Task) IsEmpty

func (t Task) IsEmpty() bool

func (*Task) SetID

func (t *Task) SetID(id uuid.UUID)

func (Task) Title

func (t Task) Title() string

type TaskDelegate

type TaskDelegate struct {
	Styles Styles
	// contains filtered or unexported fields
}

func NewTaskDelegate

func NewTaskDelegate() TaskDelegate

func (TaskDelegate) FullHelp

func (t TaskDelegate) FullHelp() [][]key.Binding

func (TaskDelegate) Height

func (t TaskDelegate) Height() int

func (TaskDelegate) Render

func (t TaskDelegate) Render(w io.Writer, m list.Model, index int, item list.Item)

func (TaskDelegate) ShortHelp

func (t TaskDelegate) ShortHelp() []key.Binding

func (TaskDelegate) Spacing

func (t TaskDelegate) Spacing() int

func (TaskDelegate) Update

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

type TaskKeyMap

type TaskKeyMap struct {
	EditItem   key.Binding
	ToggleDone key.Binding
	RemoveItem key.Binding
}

func (TaskKeyMap) FullHelp

func (t TaskKeyMap) FullHelp() [][]key.Binding

func (TaskKeyMap) ShortHelp

func (t TaskKeyMap) ShortHelp() []key.Binding

type ToggleDoneMsg

type ToggleDoneMsg struct{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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