From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: How to filter by tag/todo in AGENDA VIEW Date: Mon, 25 Jul 2011 21:34:49 -0500 Message-ID: <8762mpg46u.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlXTz-0006B1-MB for emacs-orgmode@gnu.org; Mon, 25 Jul 2011 22:34:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlXTy-0000tt-Ei for emacs-orgmode@gnu.org; Mon, 25 Jul 2011 22:34:55 -0400 Received: from out4.smtp.messagingengine.com ([66.111.4.28]:34961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlXTy-0000to-8m for emacs-orgmode@gnu.org; Mon, 25 Jul 2011 22:34:54 -0400 In-Reply-To: (Mark S.'s message of "Thu, 16 Jun 2011 09:54:17 -0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: throaway@yahoo.com Cc: "emacs-orgmode@gnu.org" "Mark S" writes: > Yes, I know you can make customized views, but I could find nothing in > the documentation showing how to customize the AGENDA view. In the > documentation, there are example of how to use the various type > functions, but none for the agenda type function. There must be some > options that go with it, or some way to tell it what TODOs you want to > see. > > The closest thing to an example is this: > > (agenda "") > > Hmm. What goes inside of ""? Nothing. The "" corresponds to the match slot within a custom agenda command. With todo and tags searches will search for a match, the agenda does not. > I know how to filter inside the TODO list, but I can't seem to find > how your filter inside of the agenda view. Is there a way? In > particular, I want to filter out all the TODO keyword items so I can > see just the non-todo schedules and deadlines. You can use org-agenda-skip-function. See: (info "(org) Special agenda views") For the scenario above, you could use: --8<---------------cut here---------------start------------->8--- (org-add-agenda-custom-command '("x" "Agenda without todos" agenda "" ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'todo))))) --8<---------------cut here---------------end--------------->8--- Best, Matt