From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Making an agenda that includes scheduled-for-later tasks? Date: Fri, 25 Jan 2019 17:10:54 -0500 Message-ID: <87h8dwfkwh.fsf@alphaville.usersys.redhat.com> References: <87pnsw7ozv.fsf@llwynog.ekleog.org> <87lg381qus.fsf@llwynog.ekleog.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([209.51.188.92]:33729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gn9gn-0000EG-TA for emacs-orgmode@gnu.org; Fri, 25 Jan 2019 17:11:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gn9gm-0001ml-Rw for emacs-orgmode@gnu.org; Fri, 25 Jan 2019 17:11:05 -0500 Received: from [195.159.176.226] (port=56156 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gn9gm-0001ls-LD for emacs-orgmode@gnu.org; Fri, 25 Jan 2019 17:11:04 -0500 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1gn9gj-000eTB-M6 for emacs-orgmode@gnu.org; Fri, 25 Jan 2019 23:11:01 +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" To: emacs-orgmode@gnu.org Leo Gaspard writes: > Hello all! > > Just trying to bump this question: How does one make an agenda view that > includes tasks that are already scheduled for later? > > (more details in the quoted mail below) > > Cheers, > Leo > > Leo Gaspard writes: > >> Hello all! >> >> I am trying to make an agenda view of all tasks that don't have the >> :Effort: property set, including tasks that are scheduled for later. >> >> My init.el files includes the following lines (of interest is the "E" >> agenda): >> ``` >> (setq org-agenda-custom-commands >> '(("U" "Unscheduled tasks" >> todo '("TODO" "WAITING") [General disclaimer: I can never remember what goes where in org-agenda-custom-commands, and it's all untested. Tread carefully.] I don't think the "todo" type can do that. You might want to use the "tags" type with a search - see (info "(org) Matching tags and properties") It should be something like tags "TODO=TODO|WAITING" or maybe tags "TODO=\"TODO|WAITING\"" or maybe tags "TODO=\"TODO\"|TODO=\"WAITING\"" (or maybe something else :-) ). >> ((org-agenda-overriding-header "Unscheduled tasks") >> (org-agenda-skip-function '(org-agenda-skip-entry-if 'scheduled)))) >> ("E" "Effortless tasks" >> todo '("TODO" "WAITING") >> ((org-agenda-overriding-header "Effortless tasks") >> (org-agenda-skip-function '(org-agenda-skip-entry-if 'regexp ":Effort:" 'todo '("APPT"))))))) >> ``` >> >> However, for some reason only tasks that are either not scheduled or >> scheduled for some time in the past show up in this agenda. This makes >> it useless, as the point is to remember to put in efforts for every >> task *before* they are scheduled (and thus started) >> >> Do you have an idea what I could have missed? Maybe (org-agenda-span 'month)? >> >> Thanking you in advance, >> Leo >> >> PS: Also, I've noticed setting =todo '("TODO" "WAITING")= is apparently >> not enough to get it to ignore the APPT-tagged items, so I've added the >> filter to =org-agenda-skip-entry-if=. If you have an idea what I'm doing >> wrong… > > -- Nick "There are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors." -Martin Fowler