From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Re: Agenda: Display projects and 3 todo subtasks Date: Tue, 30 Jul 2019 21:36:33 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f8eca7058ef0fe0e" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:40952) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hseTv-0000Yw-GC for emacs-orgmode@gnu.org; Tue, 30 Jul 2019 22:36:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hseTu-0003Ij-21 for emacs-orgmode@gnu.org; Tue, 30 Jul 2019 22:36:47 -0400 Received: from mail-io1-xd36.google.com ([2607:f8b0:4864:20::d36]:36495) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hseTt-0003HL-QG for emacs-orgmode@gnu.org; Tue, 30 Jul 2019 22:36:45 -0400 Received: by mail-io1-xd36.google.com with SMTP id o9so29333439iom.3 for ; Tue, 30 Jul 2019 19:36:45 -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: emacs-orgmode --000000000000f8eca7058ef0fe0e Content-Type: text/plain; charset="UTF-8" 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/ > > > > --000000000000f8eca7058ef0fe0e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I forgot to mention that I have PROJECT tag as not inheritable:
(setq org-tags-exclude-from-inheritance (quote ("PROJECT&q= uot;)))

And here's the agenda custom-com= mand addition:
=C2=A0("2" "List projects with task= s" my/org-agenda-projects-and-tasks
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0"+PROJECT"
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0((org-agenda-max-entries 3))


<= /div>

On Tue, Jul 30, 2019 at 9:32 PM Nathan Neff &= lt;nathan.neff@gmail.com> w= rote:
Hello all,

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

It creates an agenda v= iew with headings marked with tag "project",
and for ea= ch of those headings, it displays up to 3 sub headings marked TODO.

I like this idea of seeing my projects (plus a few TODO e= ntries under each project)
in the agenda is a cool idea, so I cop= y/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:PROJE= CT:
** 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
<= div>
And ran the custom agenda command on only that file.

The output which is produced lists each project corre= ctly.
However the sub-tasks under each project are the *same 3 su= btasks*
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 a= t [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 suggestions f= or how to
accomplish the idea above?=C2=A0 Is there something obv= ious that I'm missing about
<= /div>
--000000000000f8eca7058ef0fe0e--