tui

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: 23 Imported by: 0

Documentation

Overview

Package tui provides the interactive terminal UI for browsing and managing tasks.

It implements a Bubble Tea application with a task list view, task detail view, and overlay inputs for search, modify, annotate, route, and delete operations. The UI queries taskwarrior for task data and dispatches actions such as executing tasks, routing to agents, and managing today's focus list.

Plane: shared

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderHeatmap added in v1.2.0

func RenderHeatmap(counts map[time.Time]int, now time.Time) string

RenderHeatmap returns a compact GitHub-style heatmap string (for CLI use, no cursor). Exported so cmd/task.go can call tui.RenderHeatmap().

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

func NewModel

func NewModel() Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() tea.View

type Task

type Task struct {
	taskwarrior.Task
	Priority  string  `json:"priority,omitempty"`
	Urgency   float64 `json:"urgency"`
	Scheduled string  `json:"scheduled,omitempty"`
	Due       string  `json:"due,omitempty"`
	Entry     string  `json:"entry,omitempty"`
}

func (*Task) Age

func (t *Task) Age() string

func (*Task) IsActive

func (t *Task) IsActive() bool

func (*Task) IsToday

func (t *Task) IsToday() bool

func (*Task) ShortUUID

func (t *Task) ShortUUID() string

Jump to

Keyboard shortcuts

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