todo

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config *config.Config

Config is a pointer to the global config object

Functions

This section is empty.

Types

type Item

type Item struct {
	Checked bool
	Text    string
}

func (*Item) CheckMark

func (item *Item) CheckMark() string

func (*Item) Toggle

func (item *Item) Toggle()

type List

type List struct {
	Items []*Item
	// contains filtered or unexported fields
}

func (*List) Add

func (list *List) Add(text string)

func (*List) Delete

func (list *List) Delete()

func (*List) Demote

func (list *List) Demote()

func (*List) Len

func (list *List) Len() int

func (*List) Less

func (list *List) Less(i, j int) bool

func (*List) Next

func (list *List) Next()

func (*List) Prev

func (list *List) Prev()

func (*List) Promote

func (list *List) Promote()

func (*List) Selected

func (list *List) Selected() *Item

func (*List) Swap

func (list *List) Swap(i, j int)

func (*List) Toggle

func (list *List) Toggle()

Toggle switches the checked state of the selected item

func (*List) Unselect

func (list *List) Unselect()

func (*List) Update

func (list *List) Update(text string)

type Widget

type Widget struct {
	wtf.TextWidget
	// contains filtered or unexported fields
}

func NewWidget

func NewWidget(app *tview.Application, pages *tview.Pages) *Widget

func (*Widget) Refresh

func (widget *Widget) Refresh()

Jump to

Keyboard shortcuts

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