tasklist

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	pomo.Task
}

func (Item) Description

func (i Item) Description() string

func (Item) FilterValue

func (i Item) FilterValue() string

func (Item) Title

func (i Item) Title() string

type Model

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

func New

func New(title string, tasks []pomo.Task) Model

func (*Model) Append

func (m *Model) Append(task pomo.Task) tea.Cmd

func (*Model) AppendSelect

func (m *Model) AppendSelect(task pomo.Task) tea.Cmd

func (*Model) Blur

func (m *Model) Blur()

func (Model) Count

func (m Model) Count() int

func (*Model) Down

func (m *Model) Down()

func (*Model) Focus

func (m *Model) Focus(index int)

func (Model) Index

func (m Model) Index() int

func (*Model) Insert

func (m *Model) Insert(index int, task pomo.Task) tea.Cmd

func (*Model) InsertSelect

func (m *Model) InsertSelect(index int, task pomo.Task) tea.Cmd

func (*Model) MoveDown

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

func (*Model) MoveUp

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

func (*Model) Remove

func (m *Model) Remove() (pomo.Task, bool)

func (*Model) Select

func (m *Model) Select(index int)

func (Model) Selection

func (m Model) Selection() (pomo.Task, bool)

func (*Model) SetSize

func (m *Model) SetSize(w, h int)

func (*Model) SetTask

func (m *Model) SetTask(index int, task pomo.Task) tea.Cmd

func (*Model) SetTasks

func (m *Model) SetTasks(tasks []pomo.Task) tea.Cmd

func (Model) Task

func (m Model) Task(index int) (pomo.Task, bool)

func (Model) Tasks

func (m Model) Tasks() []pomo.Task

func (*Model) Up

func (m *Model) Up()

func (Model) Update

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

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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