emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Filtering Agenda View
@ 2012-09-05 18:50 Ken Mankoff
  2012-09-06 16:27 ` Memnon Anon
  2012-09-09 12:04 ` Bernt Hansen
  0 siblings, 2 replies; 5+ messages in thread
From: Ken Mankoff @ 2012-09-05 18:50 UTC (permalink / raw)
  To: emacs-orgmode

I'd like my agenda to not show waiting items. I'm not sure of the best
way to implement this, but my current solution has been:

		  (agenda "" (
					  (org-agenda-overriding-header "Scheduled")
					  (org-agenda-skip-function '(org-agenda-skip-entry-if 'regexp"WAITING"))
					  ))


However, this is too restrictive (too loose a filter). It skips TODO
items that are in state TODO but have recorded, somewhere in their
body, the word WAITING such as

   - State "WAITING"    from "TODO"       [2012-09-03 Mon 11:45]

I tried setting the regexp to "\ WAITING\ " but that did not fix it.

How can I improve the regexp, or is there a better way to show TODO
items that are TODO, STARTED, WHATEVER, but not WAITING (or not
WAITING and SOMETHINGELSE).

Thanks,

  -k.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Filtering Agenda View
  2012-09-05 18:50 Filtering Agenda View Ken Mankoff
@ 2012-09-06 16:27 ` Memnon Anon
  2012-09-08 15:22   ` Ken Mankoff
  2012-09-09 12:04 ` Bernt Hansen
  1 sibling, 1 reply; 5+ messages in thread
From: Memnon Anon @ 2012-09-06 16:27 UTC (permalink / raw)
  To: emacs-orgmode

Hi Ken,

Ken Mankoff <mankoff@gmail.com> writes:

> I tried setting the regexp to "\ WAITING\ " but that did not fix it.
>
> How can I improve the regexp, or is there a better way to show TODO
> items that are TODO, STARTED, WHATEVER, but not WAITING (or not
> WAITING and SOMETHINGELSE).

,----[ (describe-function 'org-agenda-skip-if) ]
| (org-agenda-skip-if SUBTREE CONDITIONS)
| [...]
| CONDITIONS is a list of symbols, boolean OR is used to combine the results
| from different tests.  Valid conditions are:
| 
| scheduled     Check if there is a scheduled cookie
| notscheduled  Check if there is no scheduled cookie
| deadline      Check if there is a deadline
| notdeadline   Check if there is no deadline
| timestamp     Check if there is a timestamp (also deadline or scheduled)
| nottimestamp  Check if there is no timestamp (also deadline or scheduled)
| regexp        Check if regexp matches
| notregexp     Check if regexp does not match.
> todo          Check if TODO keyword matches
| nottodo       Check if TODO keyword does not match
| 
| `todo' and `nottodo' accept as an argument a list of todo
| keywords, which may include "*" to match any todo keyword.
| 
>     (org-agenda-skip-entry-if 'todo '("TODO" "WAITING"))
| 
| would skip all entries with "TODO" or "WAITING" keywords.
| 
| Instead of a list, a keyword class may be given.  For example:
| 
|     (org-agenda-skip-entry-if 'nottodo 'done)
`----

Does that help?

Memnon

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Filtering Agenda View
  2012-09-06 16:27 ` Memnon Anon
@ 2012-09-08 15:22   ` Ken Mankoff
  0 siblings, 0 replies; 5+ messages in thread
From: Ken Mankoff @ 2012-09-08 15:22 UTC (permalink / raw)
  To: Memnon Anon; +Cc: emacs-orgmode

On Thu, Sep 6, 2012 at 9:27 AM, Memnon Anon
<gegendosenfleisch@googlemail.com> wrote:
>
> Does that help?
>

It does perfectly. Thanks. That was an obvious one in the
documentation. Sorry for not finding it myself...

   -k.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Filtering Agenda View
  2012-09-05 18:50 Filtering Agenda View Ken Mankoff
  2012-09-06 16:27 ` Memnon Anon
@ 2012-09-09 12:04 ` Bernt Hansen
  2012-09-10  0:18   ` Bernt Hansen
  1 sibling, 1 reply; 5+ messages in thread
From: Bernt Hansen @ 2012-09-09 12:04 UTC (permalink / raw)
  To: Ken Mankoff; +Cc: emacs-orgmode

Ken Mankoff <mankoff@gmail.com> writes:

> I'd like my agenda to not show waiting items. I'm not sure of the best
> way to implement this, but my current solution has been:
>

Hi Ken,

I automatically set a waiting tag when changing state to WAITING so I
can easily filter these out.  This tag is inherited so any subtasks of
the waiting parent are also filtered.  See
http://doc.norang.ca/org-mode.tml for details of my setup.

Regards,
Bernt

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Filtering Agenda View
  2012-09-09 12:04 ` Bernt Hansen
@ 2012-09-10  0:18   ` Bernt Hansen
  0 siblings, 0 replies; 5+ messages in thread
From: Bernt Hansen @ 2012-09-10  0:18 UTC (permalink / raw)
  To: Ken Mankoff; +Cc: emacs-orgmode

Bernt Hansen <bernt@norang.ca> writes:

> I automatically set a waiting tag when changing state to WAITING so I
> can easily filter these out.  This tag is inherited so any subtasks of
> the waiting parent are also filtered.  See
> http://doc.norang.ca/org-mode.tml for details of my setup.

Here's the correct link: 

http://doc.norang.ca/org-mode.html#ToDoStateTriggers

Regards,
Bernt

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-09-10  0:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-05 18:50 Filtering Agenda View Ken Mankoff
2012-09-06 16:27 ` Memnon Anon
2012-09-08 15:22   ` Ken Mankoff
2012-09-09 12:04 ` Bernt Hansen
2012-09-10  0:18   ` Bernt Hansen

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).