From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Sauer Subject: Re: Hiding "future" tasks in tags-todo agenda view Date: Sat, 15 Oct 2011 03:02:29 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REzCS-00051w-W8 for emacs-orgmode@gnu.org; Sat, 15 Oct 2011 04:02:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REzCR-0007pt-GD for emacs-orgmode@gnu.org; Sat, 15 Oct 2011 04:02:32 -0400 Received: from mail-iy0-f169.google.com ([209.85.210.169]:36097) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REzCR-0007pk-D0 for emacs-orgmode@gnu.org; Sat, 15 Oct 2011 04:02:31 -0400 Received: by iagf6 with SMTP id f6so2565993iag.0 for ; Sat, 15 Oct 2011 01:02:30 -0700 (PDT) In-Reply-To: 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: Neilen Marais Cc: emacs-orgmode@gnu.org Neilen, One of my favorite agenda custom commands is the following: -------snip--------start----------snip------------------ (("s" "Startup View" ((agenda "" ((org-agenda-ndays 3) (org-deadline-warning-days 1))) (agenda ""((org-agenda-time-grid nil) (org-deadline-warning-days 365) (org-agenda-entry-types (quote (:deadline))) (org-agenda-skip-entry-if (quote scheduled)) (org-agenda-ndays 1) (org-agenda-overriding-header "Unscheduled upcoming deadlines:"))) (todo "" (quote(org-agenda-overriding-header "Unscheduled No Deadline TODO: ")))))) -------snip--------end----------snip------------------ (org-agenda-ndays 3) gives me a 3 day calendar for this view (org-deadline-warning-days 1) gives me a 1 day warning for deadlines (you should be able to set it to 0 to get just today). Also, if you set a custom deadline warning on the individual task it overrides the 1 day. I also use a seperate section to show all my unscheduled TODO items down below so they are in a separate area but on the same agenda. If you had a custom command set to 0 and then added ----cut----- (todo "" (quote(org-agenda-overriding-header "Unscheduled No Deadline TODO: "))) -----cut----- it would give you a second section that has all your unscheduled TODO items at the bottom (at least it does for me in the agenda I have) Hope this helps. On Fri, Oct 14, 2011 at 3:09 PM, Neilen Marais wrote: > Hi, > > I've recently switched from using tracks (http://getontracks.org/) to > org mode for GTD task management. One neat tracks feature that I am > struggling to reproduce is the "show task from date". If you add a > task with no date set, they show up immediately in the context next > action lists, but if you have a "show from" date in the future, it > only shows the task from that date onwards. > > Scheduling timestamps (http://orgmode.org/worg/org-faq.html#sec-16-9) > seem like they should do exactly that, but they don't seem to work in > my custom org-agenda that I use to show only items with a NEXT todo > state and an assigned context. However, it shows all items > irrespective of the scheduling setting. > > (setq org-agenda-custom-commands > =A0 =A0 =A0'( > =A0 =A0 =A0 =A0("c" "Context Next Tasks" > =A0 =A0 =A0 =A0 tags-todo (mapconcat 'car my-org-context-tag-alist "|") > =A0 =A0 =A0 =A0 ((org-agenda-skip-function '(org-agenda-skip-entry-if > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0'nottodo '("NEXT"))) > =A0 =A0 =A0 =A0 =A0(org-agenda-sorting-strategy '(tag-up)) > =A0 =A0 =A0 =A0 =A0(org-agenda-overriding-header "Context Next Tasks") > =A0 =A0 =A0 =A0 =A0)) > )) > > How can I make this custom agenda skip items that are scheduled in the > future, while also keeping unscheduled tasks? I have also tried adding > =A0 =A0 =A0 =A0 =A0(org-agenda-entry-types '(:scheduled)) > but that did not seem to make any difference. > > >