qprojection

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

stolen from https://github.com/dustin/go-humanize

Index

Constants

This section is empty.

Variables

View Source
var StarProjection = []string{
	"line", "done", "priority", "completion", "creation", "projects", "contexts", "tags", "description",
}

Functions

func ExpandCleanExpression

func ExpandCleanExpression(item *todotxt.Item, clean []string) (proj []todotxt.Project, ctx []todotxt.Context, tags []string)

Types

type ColorFunc

type ColorFunc func(*todotxt.List, *todotxt.Item) *lipgloss.Color

type Projector

type Projector struct {
	Clean         []string
	ScoreCalc     qscore.Calculator
	HumanizedTags []string
	TagTypes      map[string]qselect.DType
	TagColors     map[string]ColorFunc
	LineColors    ColorFunc
	// contains filtered or unexported fields
}

func (Projector) MustProject

func (p Projector) MustProject(projection []string, list *todotxt.List, selection []*todotxt.Item) ([]string, [][]string, [][]lipgloss.Style)

func (Projector) Project

func (p Projector) Project(projection []string, list *todotxt.List, selection []*todotxt.Item) ([]string, [][]string, [][]lipgloss.Style, error)

func (Projector) Verify

func (p Projector) Verify(projection []string, list *todotxt.List) error

Jump to

Keyboard shortcuts

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