From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Lundin Subject: Re: Secondary filtering and query editing within daily/weekly agenda Date: Wed, 17 Feb 2010 07:23:27 -0500 Message-ID: <87ljeskq4g.fsf@fastmail.fm> References: <46FF04F1BA077D4586212E7E31C57D2A01D8F3111F@MAIL.darden.virginia.edu> <874omcj2mv.fsf@fastmail.fm> <46FF04F1BA077D4586212E7E31C57D2A01DBC958DE@MAIL.darden.virginia.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NhitQ-0005Yf-Jq for emacs-orgmode@gnu.org; Wed, 17 Feb 2010 07:20:36 -0500 Received: from [140.186.70.92] (port=50098 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhitO-0005YX-Fp for emacs-orgmode@gnu.org; Wed, 17 Feb 2010 07:20:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NhitN-0003Z8-FN for emacs-orgmode@gnu.org; Wed, 17 Feb 2010 07:20:34 -0500 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:51952) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhitN-0003Yr-Cn for emacs-orgmode@gnu.org; Wed, 17 Feb 2010 07:20:33 -0500 In-Reply-To: <46FF04F1BA077D4586212E7E31C57D2A01DBC958DE@MAIL.darden.virginia.edu> (William Brody's message of "Tue, 16 Feb 2010 11:24:43 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Brody, William (Buck)" Cc: Matt Lundin , "emacs-orgmode@gnu.org" "Brody, William (Buck)" writes: > I see that I can now filter by tag. Is it possible to filter by todo > state? For instance, I would like to exclude all DONE items. There is no way to filter by TODO state. One way to achieve the same effect, however, is to set the variable org-todo-state-tags-triggers, which causes tags to be added to (and removed from) an item automatically when you switch to a particular todo state. --8<---------------cut here---------------start------------->8--- (setq org-todo-state-tags-triggers '( ("STARTED" ("NEXT" . t) ("WAITING" . nil) ) ("WAITING" ("WAITING" . t) ("NEXT" . nil) ) )) --8<---------------cut here---------------end--------------->8--- The above setting adds a :NEXT: tag whenever the todo state is switched to STARTED and a :WAITING: tag whenever the todo state is switched to WAITING. These tags can then be filtered. Best, Matt