todo

package
v0.0.0-...-9c5270f Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PatternDuration

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

type Settings

type Settings struct {
	*cfg.Common
	// contains filtered or unexported fields
}

Settings defines the configuration properties for this module

func NewSettingsFromYAML

func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *config.Config) *Settings

NewSettingsFromYAML creates a new settings instance from a YAML config block

type Widget

type Widget struct {
	Error string

	view.ScrollableWidget
	// contains filtered or unexported fields
}

A Widget represents a Todo widget

func NewWidget

func NewWidget(tviewApp *tview.Application, redrawChan chan bool, pages *tview.Pages, settings *Settings) *Widget

NewWidget creates a new instance of a widget

func (*Widget) NextTodo

func (widget *Widget) NextTodo()

func (*Widget) PrevTodo

func (widget *Widget) PrevTodo()

func (*Widget) Refresh

func (widget *Widget) Refresh()

Refresh updates the data for this widget and displays it onscreen

func (*Widget) RowColor

func (widget *Widget) RowColor(idx int, hidden int, checked bool) string

func (*Widget) SelectedItem

func (widget *Widget) SelectedItem() *checklist.ChecklistItem

SelectedItem returns the currently-selected checklist item or nil if no item is selected

func (*Widget) SetList

func (widget *Widget) SetList(list checklist.Checklist)

Jump to

Keyboard shortcuts

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