From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Re: Agenda: Display projects and 3 todo subtasks Date: Fri, 23 Aug 2019 13:58:41 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000bfd3380590cd6519" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:44070) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1Em1-0000Fn-6e for emacs-orgmode@gnu.org; Fri, 23 Aug 2019 14:58:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i1Ely-0006Ay-IL for emacs-orgmode@gnu.org; Fri, 23 Aug 2019 14:58:56 -0400 Received: from mail-io1-xd2e.google.com ([2607:f8b0:4864:20::d2e]:39421) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i1Ely-0006AE-BB for emacs-orgmode@gnu.org; Fri, 23 Aug 2019 14:58:54 -0400 Received: by mail-io1-xd2e.google.com with SMTP id l7so22467956ioj.6 for ; Fri, 23 Aug 2019 11:58:54 -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 Cc: emacs list --000000000000bfd3380590cd6519 Content-Type: text/plain; charset="UTF-8" I ran into another possible solution for the request of seeing the first X TODO tasks for a project in the Agenda: Let's say I simply run an org-tags-todo query looking for :project: The Agenda now shows this: Project1 Project2 Project3 Another possible solution would be to simply TAB to one of the projects, and run org-todo-list with the restriction on the current subtree. I'm trying to find a way to create a function to do this . . . . . . I guess a macro-like function would work Thanks, --Nate On Wed, Jul 31, 2019 at 8:59 AM Sacha Chua wrote: > 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/ >>> >>> >>> >>> --000000000000bfd3380590cd6519 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I ran into another possible solution for the request of se= eing the first
X TODO tasks for a project in the Agenda:

=
Let's say I simply run an org-tags-todo query looking for :p= roject:

The Agenda now shows this:

<= /div>
Project1
Project2
Project3

Another possible solution would be to simply TAB to one of the proje= cts, and
run org-todo-list with the restriction on the current su= btree.

I'm trying to find a way to create a fu= nction to do this . . . . . . I guess
a macro-like function would= work

Thanks,
--Nate


On Wed, Jul 31, 2019 at 8:59 AM Sacha Chua <sacha@sachachua.com> wrote:
=
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 mention that I = have PROJECT tag as not inheritable:
(setq org-tags-exclude-fr= om-inheritance (quote ("PROJECT")))

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


On Tue, J= ul 30, 2019 at 9:32 PM Nathan Neff <nathan.neff@gmail.com<= /a>> wrote:
=
Hello all,

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

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

I like this idea of seeing my projects (plus a fe= w 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
=
--000000000000bfd3380590cd6519--