emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matthew Lundin <mdl@imapmail.org>
To: "Brody, William (Buck)" <BrodyW11@darden.virginia.edu>
Cc: Matt Lundin <mdl@imapmail.org>,
	"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Secondary filtering and query editing within daily/weekly agenda
Date: Wed, 17 Feb 2010 07:23:27 -0500	[thread overview]
Message-ID: <87ljeskq4g.fsf@fastmail.fm> (raw)
In-Reply-To: <46FF04F1BA077D4586212E7E31C57D2A01DBC958DE@MAIL.darden.virginia.edu> (William Brody's message of "Tue, 16 Feb 2010 11:24:43 -0500")

"Brody, William (Buck)" <BrodyW11@darden.virginia.edu> 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

      parent reply	other threads:[~2010-02-17 12:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-23  0:38 Secondary filtering and query editing within daily/weekly agenda Brody, William (Buck)
2010-01-23 14:51 ` Matt Lundin
2010-01-23 22:23   ` Brody, William (Buck)
     [not found]   ` <46FF04F1BA077D4586212E7E31C57D2A01DBC958DE@MAIL.darden.virginia.edu>
2010-02-17 12:23     ` Matthew Lundin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ljeskq4g.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=BrodyW11@darden.virginia.edu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).