[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [agenda] skip non-habit SCHEDULED
From: |
Matt Lundin |
Subject: |
Re: [O] [agenda] skip non-habit SCHEDULED |
Date: |
Thu, 19 May 2011 16:47:21 -0400 |
User-agent: |
Gnus/5.110017 (No Gnus v0.17) Emacs/24.0.50 (gnu/linux) |
Michael Brand <address@hidden> writes:
> How is it possible to skip SCHEDULED items that don't have the
> property STYLE=habit in the day-agenda of a custom agenda view?
>
> What I checked so far:
> - ((org-agenda-entry-types '(:scheduled))):
> does not distinguish between habits and non-habits
> - "match" from (key desc type match settings files):
> not available for "type" agenda AFAIK
> - org-agenda-skip-function: not available for type agenda AFAIK
Good news: the skip function does apply to agenda views. It provides a
means to do simple filtering in the agenda, which does not use the match
syntax of org-tags-view.
> - day-agenda block for :scheduled _habits_ only
> (skip of non-habits not solved yet)
Here's a sample implementation (in a single custom agenda command):
--8<---------------cut here---------------start------------->8---
(org-add-agenda-custom-command
'("x" "Agenda (habits only)" agenda ""
((org-agenda-entry-types '(:scheduled))
(org-agenda-skip-function
'(org-agenda-skip-entry-if 'notregexp ":STYLE:.*habit")))))
--8<---------------cut here---------------end--------------->8---
Best,
Matt