Xebar Saram <zelt...@gmail.com> writes: > Hi > I created this function which works well. > > (defun z/org-sparse-todo () > (interactive) > (org-match-sparse-tree t "+TODO=\"TODO\"")) > > my question is how can i match on ANY todo state and not just literaly TODO > ie if i have this in my org file > > #+TODO: TODO(t) EXP(e) | SUBMITTED(s) K_TRACK(k) PAUSED(p) DONE(d) > > how can i match it by all the todos like TODO and EXP >
Untested, but it looks to me as if (org-match-sparse-tree t) should work. -- Nick