I am trying to add an agenda custom command that shows me a sparse tree of items contain either
When I run
M-x org-occur RET NEXT\|TODO manually, it works fine. However, when I try to add it as an agenda command as following
(setq org-agenda-custom-commands '(("n" occur-tree "NEXT\|TODO")))
it doesn't match anything. I tried several combinations such as
"\(NEXT\|TODO\)" etc. and none of them worked.