* org-collector - Date-based conditions
@ 2017-12-05 17:13 Gonzalo Camarillo
2017-12-06 9:27 ` Gonzalo Camarillo
0 siblings, 1 reply; 2+ messages in thread
From: Gonzalo Camarillo @ 2017-12-05 17:13 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: org-collector - Date-based conditions
2017-12-05 17:13 org-collector - Date-based conditions Gonzalo Camarillo
@ 2017-12-06 9:27 ` Gonzalo Camarillo
0 siblings, 0 replies; 2+ messages in thread
From: Gonzalo Camarillo @ 2017-12-06 9:27 UTC (permalink / raw)
To: emacs-orgmode
Hi,
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)
#+END:
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
EFFORT)
#+END:
So, the block above will include Item A below, but not Item C.
* TODO Item A
* WAITING Item B
* Item C
Any ideas how to fix that?
Thanks,
Gonzalo
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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-12-06 9:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-05 17:13 org-collector - Date-based conditions Gonzalo Camarillo
2017-12-06 9:27 ` Gonzalo Camarillo
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).