emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Gonzalo Camarillo <gcamaril@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: org-collector - Date-based conditions
Date: Wed, 6 Dec 2017 11:27:00 +0200	[thread overview]
Message-ID: <777b24fb-38f6-5bc6-ee8c-43c2600086fc@gmail.com> (raw)
In-Reply-To: <60b29962-13be-2e68-6aa9-a4e68cb87f36@gmail.com>

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
> 

      reply	other threads:[~2017-12-06  9:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-05 17:13 org-collector - Date-based conditions Gonzalo Camarillo
2017-12-06  9:27 ` Gonzalo Camarillo [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=777b24fb-38f6-5bc6-ee8c-43c2600086fc@gmail.com \
    --to=gcamaril@gmail.com \
    --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).