WoodcoreMake the numbers vibe

Commands › Reading the project's data

#journal-entries Reading the project's data

Gives a document's revisions, newest first, each with its index, date and label.

#journal-entries(
  : 
)

Hover an argument: what it does. Hover its value: every possible value. A click keeps the bubble open.

The essentials

Data, not a displayIt returns a value: print it, compare it or loop over it.
By indexThe order follows the index, never the date: a typed date may be wrong.
The current revisionjournal-entries().first() is the one the report is at.

Arguments

ArgumentStatusWhat it does, and examples
The line's arguments
optional
The document whose journal is read.
#journal-entries().len()the number of the report's revisions
#context journal-entries(document: auto)the document being compiled

Lines to copy

Minimal call

#journal-entries()

Complete call

#journal-entries(document: "rs")

Examples

Example 1
#journal-entries().len()
The page journal-entries produces, level 2
Example 2
#for e in journal-entries() [ Rev. #e.index — #e.label \ ]
The page journal-entries produces, level 2

Defined in lib/calc-engine-records.typ:33