Add: (closed) column for dynamic block
This commit is contained in:
parent
80970856d6
commit
4646d6d307
2 changed files with 5 additions and 2 deletions
|
|
@ -246,7 +246,7 @@ Valid parameters include:
|
|||
form.
|
||||
|
||||
:columns A list of columns, including `heading', `todo',
|
||||
`property', `priority', `deadline', `scheduled'.
|
||||
`property',`priority',`deadline',`scheduled',`closed'.
|
||||
Each column may also be specified as a list with the
|
||||
second element being a header string. For example,
|
||||
to abbreviate the priority column: (priority \"P\").
|
||||
|
|
@ -297,6 +297,9 @@ For example, an org-ql dynamic block header could look like:
|
|||
(cons 'scheduled (lambda (element)
|
||||
(--when-let (org-element-property :scheduled element)
|
||||
(ts-format ts-format (ts-parse-org-element it)))))
|
||||
(cons 'closed (lambda (element)
|
||||
(--when-let (org-element-property :closed element)
|
||||
(ts-format ts-format (ts-parse-org-element it)))))
|
||||
(cons 'property (lambda (element property)
|
||||
(org-element-property (intern (concat ":" (upcase property))) element)))))
|
||||
(elements (org-ql-query :from (current-buffer)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue