today

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package today manages the daily focus task list via taskwarrior scheduled dates.

It queries taskwarrior for pending tasks with a scheduled date of today or earlier, renders them in a lipgloss table sorted by urgency, and provides Add/Remove helpers that set or clear the scheduled field. Also exposes a Completed view for tasks finished today.

Plane: shared

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(ids []string) error

Add sets scheduled:today on the given task IDs.

func Completed

func Completed() error

Completed shows tasks completed today.

func CompletedCounts added in v1.2.0

func CompletedCounts() (map[time.Time]int, error)

CompletedCounts returns a map of date → completed task count for the past year. Date keys are truncated to midnight UTC for consistent lookups.

func List

func List() error

List shows pending tasks scheduled for today or earlier, sorted by urgency.

func Remove

func Remove(ids []string) error

Remove clears the scheduled date on the given task IDs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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