todoist

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: MPL-2.0 Imports: 9 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 uint) *Project

func (*Project) LongestLine

func (proj *Project) LongestLine() int

type Settings

type Settings struct {
	// 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 {
	view.KeyboardWidget
	view.MultiSourceWidget
	view.ScrollableWidget
	// 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 (widget *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 (widget *Widget) Delete()

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

func (*Widget) HelpText added in v0.10.0

func (widget *Widget) HelpText() string

func (*Widget) Next added in v0.11.0

func (widget *Widget) Next()

func (*Widget) NextSource added in v0.11.0

func (widget *Widget) NextSource()

func (*Widget) Prev added in v0.11.0

func (widget *Widget) Prev()

func (*Widget) PrevSource added in v0.11.0

func (widget *Widget) PrevSource()

func (*Widget) ProjectAt

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

func (*Widget) Refresh

func (widget *Widget) Refresh()

func (*Widget) Unselect added in v0.11.0

func (widget *Widget) Unselect()

Jump to

Keyboard shortcuts

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