From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sacha Chua Subject: Re: Agenda: Display projects and 3 todo subtasks Date: Wed, 31 Jul 2019 21:59:44 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000005ffd60058efa8ad6" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:58995) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsp97-00074k-E2 for emacs-orgmode@gnu.org; Wed, 31 Jul 2019 10:00:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hsp96-0001ry-4C for emacs-orgmode@gnu.org; Wed, 31 Jul 2019 10:00:01 -0400 Received: from mail-yb1-xb2f.google.com ([2607:f8b0:4864:20::b2f]:45553) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hsp95-0001qC-OO for emacs-orgmode@gnu.org; Wed, 31 Jul 2019 10:00:00 -0400 Received: by mail-yb1-xb2f.google.com with SMTP id s41so2290068ybe.12 for ; Wed, 31 Jul 2019 06:59: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: Nathan Neff Cc: emacs list --0000000000005ffd60058efa8ad6 Content-Type: text/plain; charset="UTF-8" Hmm, you're right, that project subtask snippet isn't working any more. I don't think I can sort that out while I'm away from my computer, so it may take me a few weeks until I can poke around. If anyone happens to have a better config, please feel free to share! 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/ >> >> >> >> --0000000000005ffd60058efa8ad6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hmm, you're right, that project subtask snippet = isn't working any more. I don't think I can sort that out while I&#= 39;m away from my computer, so it may take me a few weeks until I can poke = around. If anyone happens to have a better config, please feel free to shar= e!

= On Wed., Jul. 31, 2019, 10:37 Nathan Neff, <nathan.neff@gmail.com= > wrote:
I forgot to m= ention that I have PROJECT tag as not inheritable:
(setq org-t= ags-exclude-from-inheritance (quote ("PROJECT")))

And here's the agenda custom-command addition:
=C2=A0("2" "List projects with tasks" my/org-agenda-p= rojects-and-tasks
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0&quo= t;+PROJECT"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0((org-agenda-m= ax-entries 3))


<= /div>

On Tue, Jul 30, 2019 at 9:32 PM Nathan Neff <nathan.n= eff@gmail.com> wrote:
Hello all,

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

It creates an agenda view with headings marked with tag "project&quo= t;,
and for each of those headings, it displays up to 3 sub headi= ngs marked TODO.

I like this idea of seeing my pro= jects (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 =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 ta= sk 2.1
** todo task 2.2
** todo task 2.3
** t= odo task 2.4

And ran the custom agenda comma= nd on only that file.

The output which is produced= lists each project correctly.
However the sub-tasks under each p= roject 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 n= ecessary for such
an agenda view.=C2=A0 Does someone have any sni= ppets or suggestions for how to
accomplish the idea above?=C2=A0 = Is there something obvious that I'm missing about
the setup o= f my test org file?

Thanks,
--Nate
=

= The associated blog entry is:



=
--0000000000005ffd60058efa8ad6--