tasks

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewForm

func NewForm() *ui.Form

NewForm is a to-do planner with reminders. A quick-add bar (TextBox with a hint, DatePicker, TimePicker, ComboBox; Enter adds) creates tasks; the Calendar, a ToggleSwitch and RadioButtons filter the Table, which colors the cells and shows images in them, toggles a task on a double click and has a context menu. A PropertyGrid (SetObject with struct tags) edits the selected task, the same in the Add task dialog. A ProgressBar in the status bar counts the done tasks. A form timer fires the reminders as toasts and tray notifications; the TrayIcon has a tooltip and a menu, and the window can be minimized to the tray.

Types

type Task

type Task struct {
	Title    string     `category:"Task"`
	Project  string     `category:"Task" options:"Inbox, Work, Home, Health, Personal"`
	Priority string     `category:"Task" options:"Low, Normal, High"`
	Due      time.Time  `category:"Schedule" desc:"The day the task is due (the time of day is kept)"`
	Reminder bool       `category:"Schedule" desc:"Show a notification when the task is due"`
	Done     bool       `category:"Status"`
	Progress int        `category:"Status" prop:"Progress, %" min:"0" max:"100"`
	Color    color.RGBA `category:"Status" prop:"Label" desc:"The color of the mark next to the title"`
	Notes    string     `category:"Notes"`
	// contains filtered or unexported fields
}

Task is one to-do item. The details pane and the task dialog edit it with a PropertyGrid (SetObject), so the struct tags describe the editors.

Jump to

Keyboard shortcuts

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