backlog

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSibling

func AddSibling(page logseq.Page, newBlock, before *content.Block, after ...*content.Block)

func FormatCount

func FormatCount(count int, singular, plural string) string

FormatCount returns a string with the count and the singular or plural form of a word.

Types

type Backlog

type Backlog interface {
	Graph() *logseq.Graph
	ProcessAll(partialNames []string) error
	ProcessOne(pageTitle string, funcQueryRefs func() (*internal.CategorizedTasks, error)) (*Result, error)
}

func NewBacklog

func NewBacklog(graph *logseq.Graph, api internal.LogseqAPI, reader ConfigReader,
	currentTime func() time.Time) Backlog

type Config

type Config struct {
	FocusPage string
	Backlogs  []SingleBacklogConfig
}

type ConfigReader

type ConfigReader interface {
	ReadConfig() (*Config, error)
}

func NewPageConfigReader

func NewPageConfigReader(graph *logseq.Graph, configPage string) ConfigReader

NewPageConfigReader creates a new ConfigReader that reads the backlog configuration from a Logseq page.

type Result

type Result struct {
	FocusRefsFromPage *set.Set[string]
	ShowQuickCapture  bool
}

type SingleBacklogConfig

type SingleBacklogConfig struct {
	BacklogPage string
	Icon        string
	InputPages  []string
}

Jump to

Keyboard shortcuts

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