From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gonzalo Camarillo Subject: Re: org-collector - Date-based conditions Date: Wed, 6 Dec 2017 11:27:00 +0200 Message-ID: <777b24fb-38f6-5bc6-ee8c-43c2600086fc@gmail.com> References: <60b29962-13be-2e68-6aa9-a4e68cb87f36@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMVyu-00038j-73 for emacs-orgmode@gnu.org; Wed, 06 Dec 2017 04:27:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eMVyq-00069f-6T for emacs-orgmode@gnu.org; Wed, 06 Dec 2017 04:27:08 -0500 Received: from mail-lf0-x235.google.com ([2a00:1450:4010:c07::235]:34853) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eMVyp-00069K-Uh for emacs-orgmode@gnu.org; Wed, 06 Dec 2017 04:27:04 -0500 Received: by mail-lf0-x235.google.com with SMTP id j124so3486538lfg.2 for ; Wed, 06 Dec 2017 01:27:03 -0800 (PST) Received: from [192.168.1.6] (178-55-100-205.bb.dnainternet.fi. [178.55.100.205]) by smtp.googlemail.com with ESMTPSA id x18sm448277ljb.86.2017.12.06.01.27.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Dec 2017 01:27:00 -0800 (PST) In-Reply-To: <60b29962-13be-2e68-6aa9-a4e68cb87f36@gmail.com> Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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<=\"\"" > > 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 >