diff --git a/README.org b/README.org index 5d3cf93..c125447 100644 --- a/README.org +++ b/README.org @@ -471,7 +471,7 @@ It would be expanded to: Org QL provides a dynamic block that lists entries in the current document matching a query. In the header, these parameters are supported: + ~:query~: An Org QL query expression in either sexp or non-sexp form. -+ ~:columns~ A list of columns, including ~heading~, ~todo~, ~property~, ~priority~, ~deadline~, ~scheduled~. ++ ~:columns~ A list of columns, including ~heading~, ~todo~, ~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")~. - For certain columns, like =property=, arguments may be passed by specifying the column type itself as a list. For example, to display a column showing the values of a ~property~ named ~milestone~, with the header being abbreviated to ~M~: ~((property "milestone") "M")~. + ~:sort~ One or a list of Org QL sorting methods (see ~org-ql-select~). diff --git a/org-ql-search.el b/org-ql-search.el index c7c979f..6c32cdd 100644 --- a/org-ql-search.el +++ b/org-ql-search.el @@ -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)