view

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SelectionStyle list.Styles = list.DefaultStyles()

Functions

This section is empty.

Types

type List

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

func NewList

func NewList(repo *todotxt.Repo, proj qprojection.Projector, projection []string, getTasks func(*todotxt.List) []*todotxt.Item, interactive bool) List

func (List) Init

func (l List) Init() tea.Cmd

func (List) Run

func (l List) Run(initial *todotxt.List) error

func (List) Update

func (l List) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (List) View

func (l List) View() string

type RefreshListMsg

type RefreshListMsg struct {
	List *todotxt.List
}

type Selection

type Selection struct {
	Cancelled bool
	// contains filtered or unexported fields
}

func NewSelection

func NewSelection(choices []*todotxt.Item) Selection

func (Selection) Init

func (s Selection) Init() tea.Cmd

func (Selection) Run

func (s Selection) Run() ([]*todotxt.Item, error)

func (Selection) Selection

func (s Selection) Selection() []*todotxt.Item

func (Selection) Update

func (s Selection) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Selection) View

func (s Selection) View() string

type SuccessMessage

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

func NewSuccessMessage

func NewSuccessMessage(operation string, list *todotxt.List, selection []*todotxt.Item) *SuccessMessage

func (SuccessMessage) Run

func (s SuccessMessage) Run()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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