types

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrefixDelimiter = ":"

	GOOSDarwin = "darwin"

	TaskSummaryMaxLen = 300
)

Variables

View Source
var (
	ErrTaskPrefixEmpty      = errors.New("Task prefix cannot be empty")
	ErrTaskSummaryBodyEmpty = errors.New("Task summary body is empty")
	ErrTaskSummaryTooLong   = fmt.Errorf("Task summary is too long; max length allowed: %d", TaskSummaryMaxLen)
)

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 {
	ItemTitle string
	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