References and ids
Any node can have an id. !id then refers to that node from any file of the
workspace: in an after:: dependency, in an include:, or as a link in a
title or description. Requirements need no id: they are referenced by their
own name, req~name.
- [ ] Sign the lease [id:: lease] [due:: 2027-02-26]- [ ] Move in [after:: !lease + 1 week]
Keys are handed over once !lease is countersigned, see req~night-access.- An id is set with
id::on a heading or list item, or withid:in the frontmatter of a file (or of a folder’sindex.md, which gives the folder its id). - An id is lowercase letters, digits and hyphens,
[a-z0-9-]+, and unique in the whole workspace. A value that is not an id is abad-valueerror, and an id used twice is aduplicate-iderror on every use after the first. - Ids are optional. Add one the first time something needs to point at a
node. The
idoperation offacet editadds one made from the node’s title (Sign the leasegetssign-the-lease, orsign-the-lease-2when that is taken) and keeps an existing one. - Ids in files excluded by
.facetignoredo not count.
!id references
Section titled “!id references”!idrefers to the node with that id, in any file.- An
!idthat matches no node is anunknown-iderror, wherever it is written: inafter::, in aninclude:entry or in text. - In a title or description,
!idis a link: you can navigate it and lint checks it, but it is never a dependency. Onlyafter::creates scheduling links. after::targets must be tasks, events, milestones or groups; anything else is abad-after-targeterror, see Dependencies.- In frontmatter, quote it:
include: ["!lease"], see Frontmatter. - A reference must not follow a letter, digit,
_,!,~or/:Hello!world,!!xand a/!xinside a URL are plain text.
req~name references
Section titled “req~name references”- A requirement is referenced by its own name:
req~night-access, without!. See Requirements. - In
covers::andNeeds:, a name defined nowhere is anunknown-requirementerror. In a title or description,req~nameis a link and is not checked.
Where references are plain text
Section titled “Where references are plain text”!id and req~name inside code blocks, inline code and HTML comments are
plain text: they are not read and not linted.
Write the dependency as `after:: !lease`. <!-- !draft is not a link -->