types

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrefixDelimiter = ":"

	GOOSDarwin = "darwin"

	TaskSummaryMaxLen = 300
)

Variables

View Source
var (
	ErrTaskSummaryEmpty     = errors.New("task summary is empty")
	ErrTaskPrefixEmpty      = errors.New("task prefix is empty")
	ErrTaskSummaryBodyEmpty = errors.New("task summary body is empty")
	ErrTaskSummaryTooLong   = errors.New("task summary is too long")
)

Functions

func CheckIfTaskSummaryValid added in v0.4.0

func CheckIfTaskSummaryValid(summary string) (bool, error)

func GetDynamicStyle added in v0.4.0

func GetDynamicStyle(str string) lipgloss.Style

Types

type ContextBookmark added in v0.3.0

type ContextBookmark string

func (ContextBookmark) Description added in v0.3.0

func (c ContextBookmark) Description() string

func (ContextBookmark) FilterValue added in v0.3.0

func (c ContextBookmark) FilterValue() string

func (ContextBookmark) Title added in v0.3.0

func (c ContextBookmark) Title() string

type Task

type Task struct {
	ID        uint64
	Summary   string
	Context   *string
	Active    bool
	CreatedAt time.Time
	UpdatedAt time.Time
}

func (Task) Description added in v0.2.0

func (t Task) Description() string

func (Task) FilterValue

func (t Task) FilterValue() string

func (Task) GetPrefixAndSummaryContent added in v0.4.0

func (t Task) GetPrefixAndSummaryContent() (string, string, bool)

func (Task) Prefix added in v0.4.0

func (t Task) Prefix() (TaskPrefix, bool)

func (Task) Title added in v0.2.0

func (t Task) Title() string

type TaskPrefix added in v0.4.0

type TaskPrefix string

func (TaskPrefix) Description added in v0.4.0

func (p TaskPrefix) Description() string

func (TaskPrefix) FilterValue added in v0.4.0

func (p TaskPrefix) FilterValue() string

func (TaskPrefix) Title added in v0.4.0

func (p TaskPrefix) Title() string

Jump to

Keyboard shortcuts

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