Documentation
¶
Overview ¶
Package tasktitle is tracker.title: the template a task's title is written through on the tracker, and the strip that takes a leading id back off so f10's own output never shows it twice.
Index ¶
Constants ¶
const None = "none"
None is the declared word for bare titles.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Template ¶
type Template string
Template is tracker.title. The zero value changes nothing, so titles stay bare.
const Default Template = "{id}: {title}"
Default is the template a host tracker takes when tracker.title is not declared, because the host shows the id only as small text under the title.
func Parse ¶
Parse refuses a template without exactly one {title} and a placeholder other than {id}, {n} and {title}. None and a bare "{title}" both parse to the zero template. A literal "{title}" would read as already applied to every title, so a PR title would lose its id.
func (Template) Applied ¶
Applied reports whether title is already written through the template, whatever its shape, so a retitle leaves it alone.