Nodes and properties
Inside a file, every heading and every list item is a node. Nesting gives the
tree: a heading contains the headings below it of a deeper level and the
lists under it, and an indented list item is a child of the item above it.
Each node gets a type from the way it is written, and carries properties
written as key:: value.
# Bike-share pilot
## Stations
- [ ] Choose station sites [id:: sites] [due:: 2027-03-01]- [ ] Install batch 1 after:: !sites duration:: 2 weeks owner:: @mara
Batch 1 covers the four stations closest to the ferry.
- Pilot opens [type:: milestone] [after:: !sites + 6 weeks]- Ask the port authority about night lighting.Here Stations is a group, the two checkbox items are tasks, Pilot opens
is a milestone and the last item is a note. The paragraph under
Install batch 1 is that task’s description.
- Every heading (
#to######, or a setext heading underlined with===or---) and every list item is a node. - Heading levels and list indentation give parent and child. A list under a heading is that heading’s children.
- List items can use any Markdown marker:
-,*,+,1.or1). - The first
#heading is the title of the file node itself, see Files. - Paragraphs, quotes, tables and code blocks are the description of the node directly above them.
- Code blocks are never read for nodes, and
!idorreq~nameinside them is plain text.
A node’s type is inferred from its form. A type:: property overrides it.
| Form | Type |
|---|---|
# … ###### heading |
group (a phase, a section) |
- [ ] … checkbox item |
task |
- req~name: … |
requirement |
item with start::, end:: or due::, no checkbox |
event or milestone |
| any other list item | note |
| the file / a folder | file / folder |
- An item without a checkbox that has
due::and none ofstart::,end::orduration::is a milestone. Withstart::orend::(ordue::withduration::) it is an event. - An item with only
duration::and no checkbox stays a note: give it a checkbox ortype::to schedule it. type::takes one oftask,group,requirement,event,milestone,note. Any other value is abad-valueerror and the inferred type stays. The file and folder types cannot be set.- A
type:in a file’s frontmatter is a free label for the file and does not change any type, see Frontmatter.
Milestones
Section titled “Milestones”A milestone is any node with type:: milestone, or an item without a
checkbox that has due:: and no start::, end:: or duration::.
- It has zero length. Where it sits is described in Dates and scheduling.
- A checkbox item may be
type:: milestone; done means reached.
- Contract signed [due:: 2027-02-15]- [ ] Safety audit passed [type:: milestone] [after:: !audit]Properties
Section titled “Properties”A property is written key:: value. There are two placements with the same
meaning, and one item may mix them freely.
Inline, in square brackets at the end of the title line:
- [ ] Order docks [id:: docks] [due:: 2027-03-01]Below the item, one per line, indented to the item’s text, before any description:
- [ ] Order docks id:: docks owner:: @mara due:: 2027-03-01- The property block is the run of indented
key:: valuelines (and, on a requirement,Needs:lines) right below the title line. It ends at the first other line. - A heading has properties too: inline on the heading line, or as
key:: valuelines right below the heading. - Keys are lowercase: a letter, then letters, digits,
_or-. A line with an uppercase key is not a property. - Unknown keys are kept and shown as custom properties.
- Lists of values are comma-separated:
covers:: req~login, req~logout. - If a key is written twice on one node, the first one counts.
When Facet adds a property, it writes up to 3 short ones inline and the rest below the title; How Facet writes has the exact rule.
Known keys
Section titled “Known keys”| Key | Value | Meaning |
|---|---|---|
id |
[a-z0-9-]+, unique |
reference target |
type |
task, group, event… (see Types) |
overrides the type |
start, end |
date | fixed dates |
duration |
3 days, 2 weeks, 4h |
length, calendar time |
after |
!id or !id + 2 days, comma list |
finish-to-start dependency |
due |
date | deadline, not a scheduling date |
repeat |
recurrence, optional when done |
repeating task |
last |
date | last completion of a repeating task |
priority |
1 to 4 |
4 urgent … 1 someday |
owner |
@handle, comma list |
people |
away |
start/end dates |
a person’s absence, in people.md |
covers |
req~name list |
the task covers these requirements |
needs |
req~name list, written Needs: |
requirement needs requirement |
status |
a column of the board: |
custom board column |
progress |
0% to 100%, whole number |
manual progress of a leaf task |
- Dates, durations,
after::andrepeat::are described in Dates and scheduling and Tasks. covers::andNeeds:are described in Requirements.status::places a task in a column of a custom board; see the Board view.progress::sets the progress of a leaf task that is not done (a done task counts as 100%). Parents compute their progress from their children, see Roll-up.- A known key whose value cannot be read is a lint error:
bad-dateforstart,end,due,lastandaway,bad-durationforduration,bad-valuefor the others. See Lint.
How each view shows these nodes and properties is described in the Views section: the Gantt, the Tree, the Mindmap, the Board, Today, Requirements and the Overview.