task

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source struct {
	FilePath string    // Absolute path to .md file
	Line     int       // Line number (1-indexed)
	FileMod  time.Time // File modification time (for sorting by recency)
}

type Status

type Status int
const (
	Todo Status = iota
	Done
)

func (Status) String

func (s Status) String() string

type Task

type Task struct {
	Description    string
	Status         Status
	Due            *time.Time
	Start          *time.Time
	RRule          string
	Tags           []string
	WikiLinks      []string
	Source         Source
	CalDAVUID      string
	LinkedTaskFile string // absolute path to tasks/<uid>.md; empty for plain tasks
	Priority       int    // 0=none, 1-9 per RFC 5545 (linked tasks only)
	CalDAVStatus   string // "NEEDS-ACTION", "IN-PROCESS", etc (linked tasks only)
	Body           string // description body from task file (linked tasks only)
}

func (*Task) IsDone

func (t *Task) IsDone() bool

func (*Task) RelativePath

func (t *Task) RelativePath(vaultPath string) string

func (*Task) Toggle

func (t *Task) Toggle()

Jump to

Keyboard shortcuts

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