emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Custom agenda view by TODO state and tag


From: Bernt Hansen
Subject: Re: [O] Custom agenda view by TODO state and tag
Date: Tue, 26 Apr 2011 07:46:57 -0400
User-agent: Gnus/5.110015 (No Gnus v0.15) Emacs/23.2 (gnu/linux)

Laurynas Biveinis <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]