From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Agenda: Display projects and 3 todo subtasks Date: Tue, 30 Jul 2019 21:32:50 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ab73e0058ef0f117" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:55767) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hseQK-0007nj-Gj for emacs-orgmode@gnu.org; Tue, 30 Jul 2019 22:33:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hseQJ-00057H-3x for emacs-orgmode@gnu.org; Tue, 30 Jul 2019 22:33:04 -0400 Received: from mail-io1-xd31.google.com ([2607:f8b0:4864:20::d31]:37073) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hseQI-00055U-S3 for emacs-orgmode@gnu.org; Tue, 30 Jul 2019 22:33:03 -0400 Received: by mail-io1-xd31.google.com with SMTP id q22so13119396iog.4 for ; Tue, 30 Jul 2019 19:33:02 -0700 (PDT) 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 --000000000000ab73e0058ef0f117 Content-Type: text/plain; charset="UTF-8" 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/ --000000000000ab73e0058ef0f117 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello all,

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

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 ide= a of seeing my projects (plus a few TODO entries under each project)
<= div>in the agenda is a cool idea, so I copy/pasted the snippet at [1].

I created an example org file:
* Projec= t 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<= /div>
** todo task 1.2
** todo task 1.3
** todo tas= k 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 cu= stom agenda command on only that file.

The output = which is produced lists each project correctly.
However the sub-t= asks under each project are the *same 3 subtasks*
from Project 1<= /div>

=C2=A0 foo: =C2=A0 =C2=A0 =C2=A0 =C2=A0Projec= t 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 tho= ught would be necessary for such
an agenda view.=C2=A0 Does someo= ne have any snippets or suggestions for how to
accomplish the ide= a above?=C2=A0 Is there something obvious that I'm missing about
<= div>the setup of my test org file?

Thanks,
--Nate




=
--000000000000ab73e0058ef0f117--