tasks

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatTable

func FormatTable(tasks []Task) string

FormatTable returns a formatted string table of tasks.

func GroupByFile

func GroupByFile(tasks []Task) map[string][]Task

GroupByFile groups tasks by their source file.

func GroupByTag

func GroupByTag(tasks []Task) map[string][]Task

GroupByTag groups tasks by their tags. A task with multiple tags appears in each group.

Types

type Task

type Task struct {
	File     string
	Line     int
	Text     string
	Checked  bool
	Priority string   // "high", "medium", "low", or ""
	Tags     []string // extracted #tag values
	DueDate  string   // extracted @due(YYYY-MM-DD) value
}

Task represents a TODO/FIXME extracted from markdown files.

func Aggregate

func Aggregate(fileContents map[string]string) []Task

Aggregate collects tasks from multiple files.

func Extract

func Extract(filePath, content string) []Task

Extract finds all task items in markdown content.

func Pending

func Pending(tasks []Task) []Task

Pending returns only unchecked tasks.

Jump to

Keyboard shortcuts

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