From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Re: Agenda: Display projects and 3 todo subtasks Date: Thu, 1 Aug 2019 16:48:46 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000007b8908058f15350b" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:60752) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htIwX-0004En-Di for emacs-orgmode@gnu.org; Thu, 01 Aug 2019 17:49:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htIwV-0008Jp-RM for emacs-orgmode@gnu.org; Thu, 01 Aug 2019 17:49:01 -0400 Received: from mail-io1-xd2a.google.com ([2607:f8b0:4864:20::d2a]:41043) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1htIwV-0008Gg-IU for emacs-orgmode@gnu.org; Thu, 01 Aug 2019 17:48:59 -0400 Received: by mail-io1-xd2a.google.com with SMTP id j5so143617183ioj.8 for ; Thu, 01 Aug 2019 14:48:58 -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" To: Sacha Chua , emacs-orgmode --0000000000007b8908058f15350b Content-Type: text/plain; charset="UTF-8" Wow, cool to hear from the one & only Sacha! Also, I found this GTD blog which appears to have something similar, under the "Filtering Projects and Actions" section: https://emacs.cafe/emacs/orgmode/gtd/2017/06/30/orgmode-gtd.html However, this mechanism seems to report only the first TODO action which is tagged with "@office" and (I presume) assumes that any headline tagged @office is a "project". Also, after reviewing Bernt Hansen's org-mode setup, it appears that he uses NEXT keyword to distinguish between tasks that need to be done (TODO) and tasks that can be accomplished NEXT. This may obviate the need to show the first X items of any given project. So many options . . . . . . Thanks, --Nate > > > >> On Wed., Jul. 31, 2019, 10:37 Nathan Neff, wrote: >> >>> I forgot to mention that I have PROJECT tag as not inheritable: >>> (setq org-tags-exclude-from-inheritance (quote ("PROJECT"))) >>> >>> And here's the agenda custom-command addition: >>> ("2" "List projects with tasks" my/org-agenda-projects-and-tasks >>> "+PROJECT" >>> ((org-agenda-max-entries 3)) >>> >>> >>> >>> On Tue, Jul 30, 2019 at 9:32 PM Nathan Neff >>> wrote: >>> >>>> Hello all, >>>> >>>> I found this cool snippet at Sacha Chua's website: [1]. >>>> >>>> It creates an agenda view with headings marked with tag "project", >>>> and for each of those headings, it displays up to 3 sub headings marked >>>> TODO. >>>> >>>> I like this idea of seeing my projects (plus a few TODO entries under >>>> each project) >>>> in the agenda is a cool idea, so I copy/pasted the snippet at [1]. >>>> >>>> I created an example org file: >>>> * Project 1 :PROJECT: >>>> ** todo task 1.1 >>>> ** todo task 1.2 >>>> ** todo task 1.3 >>>> ** todo task 1.4 >>>> * Project 2 :PROJECT: >>>> ** todo task 2.1 >>>> ** todo task 2.2 >>>> ** todo task 2.3 >>>> ** todo task 2.4 >>>> >>>> And ran the custom agenda command on only that file. >>>> >>>> The output which is produced lists each project correctly. >>>> However the sub-tasks under each project are the *same 3 subtasks* >>>> from Project 1 >>>> >>>> foo: Project 1 >>>> foo: todo task 1.1 >>>> foo: todo task 1.2 >>>> foo: todo task 1.3 >>>> foo: Project 2 >>>> foo: todo task 1.1 >>>> foo: todo task 1.2 >>>> foo: todo task 1.3 >>>> >>>> The snippet at [1] is a bit more complex than I thought would be >>>> necessary for such >>>> an agenda view. Does someone have any snippets or suggestions for how >>>> to >>>> accomplish the idea above? Is there something obvious that I'm missing >>>> about >>>> the setup of my test org file? >>>> >>>> Thanks, >>>> --Nate >>>> >>>> [1] >>>> https://github.com/sachac/.emacs.d/blob/gh-pages/Sacha.org#display-projects-with-associated-subtasks >>>> The associated blog entry is: >>>> >>>> https://sachachua.com/blog/2013/01/emacs-org-display-projects-with-a-few-subtasks-in-the-agenda-view/ >>>> >>>> >>>> >>>> --0000000000007b8908058f15350b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable



Hello all,

I found this cool snippet at S= acha Chua's website: [1]. =C2=A0

It creates an= agenda view with headings marked with tag "project",
a= nd for each of those headings, it displays up to 3 sub headings marked TODO= .

I like this idea of seeing my projects (plus a f= ew TODO entries under each project)
in the agenda is a cool idea,= so I copy/pasted the snippet at [1].

I created an= example org file:
* Project 1 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0:PROJECT:
** todo task 1.1
** todo task 1.2
=
** todo task 1.3
** todo task 1.4
* Project 2 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:PROJECT:
** todo task 2.1
** todo task 2.2
** todo task 2.3
** todo task 2.4

And ran the custom agenda command on only tha= t file.

The output which is produced lists each pr= oject correctly.
However the sub-tasks under each project are the= *same 3 subtasks*
from Project 1

= =C2=A0 foo: =C2=A0 =C2=A0 =C2=A0 =C2=A0Project 1
=C2=A0 foo: =C2= =A0 =C2=A0 =C2=A0 =C2=A0todo task 1.1
=C2=A0 foo: =C2=A0 =C2=A0 = =C2=A0 =C2=A0todo task 1.2
=C2=A0 foo: =C2=A0 =C2=A0 =C2=A0 =C2= =A0todo task 1.3
=C2=A0 foo: =C2=A0 =C2=A0 =C2=A0 =C2=A0Project 2=
=C2=A0 foo: =C2=A0 =C2=A0 =C2=A0 =C2=A0todo task 1.1
= =C2=A0 foo: =C2=A0 =C2=A0 =C2=A0 =C2=A0todo task 1.2
=C2=A0 foo: = =C2=A0 =C2=A0 =C2=A0 =C2=A0todo task 1.3

The= snippet at [1] is a bit more complex than I thought would be necessary for= such
an agenda view.=C2=A0 Does someone have any snippets or sug= gestions for how to
accomplish the idea above?=C2=A0 Is there som= ething obvious that I'm missing about
the setup of my test or= g file?

Thanks,
--Nate
=
--0000000000007b8908058f15350b--