Try to refine Org QL query for currently active DATE entries
`ts-now` should be better than `today`, as it includes the current time.
This commit is contained in:
parent
2114c22d3f
commit
21200d8bc4
@ -1289,11 +1289,12 @@ inserting the checklist."
|
|||||||
:select '(cons
|
:select '(cons
|
||||||
(org-entry-get (point) "ITEM")
|
(org-entry-get (point) "ITEM")
|
||||||
(org-id-get-create))
|
(org-id-get-create))
|
||||||
:where '(and ; XXX: this is not quite right yet
|
:where `(and ; XXX: this is not quite right yet
|
||||||
(tags "DATE")
|
(tags "DATE")
|
||||||
(not (done))
|
(not (done))
|
||||||
(ts-active :from today)
|
;; XXX: calling `ts-now' twice might be stupid
|
||||||
(ts-active :to today)))))
|
(ts-active :from ,(ts-now))
|
||||||
|
(ts-active :to ,(ts-now))))))
|
||||||
(insert "Concurrent DATEs:\n")
|
(insert "Concurrent DATEs:\n")
|
||||||
(dolist (date concurrent-dates)
|
(dolist (date concurrent-dates)
|
||||||
(insert "- " (org-link-make-string (cdr date) (car date)) "\n"))
|
(insert "- " (org-link-make-string (cdr date) (car date)) "\n"))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user