Add regexp matcher

This commit is contained in:
Adam Porter 2018-05-10 18:43:03 -05:00
parent 96dd06b144
commit 58b2cca65f
3 changed files with 23 additions and 3 deletions

View file

@ -50,11 +50,11 @@ Another way to look at it is like a "query language" for Org buffers. For examp
(tags "Emacs")
(priority >= "B"))) ;; => ((headline (:raw-value "org-board" :begin 1220270 :end 1220403 ...)) ...)
;; Find non-done TODO items which are tagged "Emacs" and have priority "B" or higher, and return a
;; list of heading positions:
;; Find non-done items which contain the term "Emacs" and have priority "B" or higher, and
;; return a list of heading positions:
(org-ql org-agenda-files
(and (not (done))
(tags "Emacs")
(regexp "Emacs")
(priority >= "B"))
:action-fn (lambda (element)
(org-element-property :begin element))) ;; => (44154 46469 56008 63965 100008 ...)