todoist

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

type Project struct {
	todoist.Project
	// contains filtered or unexported fields
}

func NewProject

func NewProject(id int) *Project

func (*Project) LongestLine

func (proj *Project) LongestLine() int

type Settings

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

func NewSettingsFromYAML

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

type Widget

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

A Widget represents a Todoist widget

func NewWidget

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

NewWidget creates a new instance of a widget

func (*Widget) Close

func (w *Widget) Close()

Close closes the currently-selected task in the currently-selected project

func (*Widget) CurrentProject

func (widget *Widget) CurrentProject() *Project

func (*Widget) Delete

func (w *Widget) Delete()

Delete deletes the currently-selected task in the currently-selected project

func (*Widget) Down

func (w *Widget) Down()

Down selects the next item in the list

func (*Widget) HelpText added in v0.10.0

func (widget *Widget) HelpText() string

func (*Widget) ProjectAt

func (widget *Widget) ProjectAt(idx int) *Project

func (*Widget) Refresh

func (w *Widget) Refresh()

func (*Widget) Up

func (w *Widget) Up()

Up selects the previous item in the list

Jump to

Keyboard shortcuts

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