[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-collector - Date-based conditions

From: Gonzalo Camarillo
Subject: Re: [O] org-collector - Date-based conditions
Date: Wed, 6 Dec 2017 11:27:00 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0


after investigating a bit, it turns out the condition can be any elisp
expression. So, the following block lists all items with SCHEDULED dates
up to today:

#+BEGIN: propview :conds  ((string< (org-read-date nil nil SCHEDULED)
(org-read-date nil nil "+1"))) :cols (ITEM EFFORT)


However, per the second part of my initial question, I am still unable
to have a block only list items with no TODO keyword. Interestingly,
simply adding the TODO property to the conditions makes items with no
TODO keyword *not* be listed at all. For example, the block below will
list items with TODO keywords different than "WAITING", but it will not
include items with no TODO keyword for some reason:

#+BEGIN: propview :conds  ((not (string= TODO "WAITING"))) :cols (ITEM


So, the block above will include Item A below, but not Item C.

* TODO Item A
* Item C

Any ideas how to fix that?



On 05/12/2017 7:13 PM, Gonzalo Camarillo wrote:
> Hi,
> I am using org-collector to generate agenda views. For example, the
> following block includes all items whose TODO keyword is "WAITING":
> #+BEGIN: propview :conds ((string= TODO "WAITING")) :cols (ITEM EFFORT)
> #+END:
> I would like to add an additional condition based on the SCHEDULED
> property of items. I would like to list all items whose SCHEDULED
> property is less (earlier) or equal than today. How can I write such a
> condition?
> To do the above using org-agenda-custom-commands, I use the following:
>   tags "TODO=\"WAITING\"+SCHEDULED<=\"<today>\""
> I would like to do the same using org-collector instead.
> Additionally, how can I write a condition to select items without a TODO
> keyword? I try (string= TODO "") but it does not seem to work.
> Thanks,
> Gonzalo

reply via email to

[Prev in Thread] Current Thread [Next in Thread]