From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neilen Marais Subject: Re: Hiding Date: Thu, 10 Nov 2011 16:00:14 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROX3T-0006FM-F9 for emacs-orgmode@gnu.org; Thu, 10 Nov 2011 11:00:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROX3J-0002l6-VP for emacs-orgmode@gnu.org; Thu, 10 Nov 2011 11:00:43 -0500 Received: from lo.gmane.org ([80.91.229.12]:36476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROX3J-0002ke-In for emacs-orgmode@gnu.org; Thu, 10 Nov 2011 11:00:33 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1ROX3E-0007IC-Vg for emacs-orgmode@gnu.org; Thu, 10 Nov 2011 17:00:31 +0100 Received: from 196.24.41.254 ([196.24.41.254]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Nov 2011 17:00:28 +0100 Received: from nmarais by 196.24.41.254 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Nov 2011 17:00:28 +0100 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Carsten, Carsten Dominik gmail.com> writes: > > > Hi Neilen, > > this was a pretty good attempt for someone who says he is new to org! Why thanks :) Been a while since I've been able to play with my Org, but thanks for the info. > Scheduling normally has the purpose to make an item show up in your daily > agenda on a specified date. But you can use is also to hide items scheduled > in the future from the task list. Here is how: > > Another, more compact possibility that is also more easily extended to your > longer list of tasks in my-org-context-tags-alist is: > > (setq org-agenda-custom-commands > '( > ("c" "Context Next Tasks" > tags-todo "SCHEDULED=\"\"|SCHEDULED<=\"\"/NEXT" > ((org-agenda-sorting-strategy '(tag-up)) > (org-agenda-overriding-header "Context Next Tasks") > )))) > Let me know if I need to further explain why these works - but I > guess you can figure it out? Finding http://orgmode.org/manual/Matching-tags-and-properties.html helped. I ended up with (setq org-agenda-custom-commands '( ("c" "Context Next Tasks" tags-todo (concat "SCHEDULED=\"\"+{" (mapconcat 'car my-org-context-tag-alist "\\|") "}|SCHEDULED<=\"\"+{" (mapconcat 'car my-org-context-tag-alist "\\|") "}/NEXT") ((org-agenda-sorting-strategy '(tag-up)) (org-agenda-overriding-header "Context Next Tasks") )) )) which seems a little clunky, but works :) BTW, why does one need to escape the pipe (|) character for regexes? Caused me a bit if head scratching till I looked carefully at you example. Thanks Neilen > Cheers > > - Carsten > >