Laurynas Biveinis <laurynas.bivei...@gmail.com> writes: > Hi everybody - > > I want to create a custom agenda view that filters by both TODO state > and tags, i.e. a combination of todo and tags-todo search types. I > have tried creating custom search action > ((org-agenda-todo "TODO") (org-agenda-filter "tag1|tag2")) but failed. > > Any pointers?
Hi Laurynas, Just use a tags-todo filter and list both. ("n" "Next and Started tasks" tags-todo "-WAITING-CANCELLED/!NEXT|STARTED" ((org-agenda-overriding-header "Next Tasks"))) This looks for all todo tasks that do not have a WAITING or CANCELLED tag and have a todo keyword matching NEXT or STARTED. You probably want something like this C-c a M tag1|tag2/!TODO ("x" "Todo tasks for tag1 or tag2" tags-todo "tag1|tag2/!TODO") ((org-agenda-overriding-header "Todo tasks for tag1 or tag2"))) HTH, Bernt