emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nathan Neff <nathan.neff@gmail.com>
To: Sacha Chua <sacha@sachachua.com>, emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Agenda: Display projects and 3 todo subtasks
Date: Thu, 1 Aug 2019 16:48:46 -0500	[thread overview]
Message-ID: <CAC=HedBG17ihPFpn1ic5YE4jojx12=gNabiDh9Km=zK27p1TSw@mail.gmail.com> (raw)
In-Reply-To: <CAC=HedC2ca+5zS2kSVaLRFm556z_7+Va3Ymki_D46P_FOKUXMQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3126 bytes --]

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, <nathan.neff@gmail.com> 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 <nathan.neff@gmail.com>
>>> 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/
>>>>
>>>>
>>>>
>>>>

[-- Attachment #2: Type: text/html, Size: 5888 bytes --]

  parent reply	other threads:[~2019-08-01 21:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-31  2:32 Agenda: Display projects and 3 todo subtasks Nathan Neff
2019-07-31  2:36 ` Nathan Neff
2019-07-31 13:59   ` Sacha Chua
     [not found]     ` <CAC=HedC2ca+5zS2kSVaLRFm556z_7+Va3Ymki_D46P_FOKUXMQ@mail.gmail.com>
2019-08-01 21:48       ` Nathan Neff [this message]
2019-08-23 18:58     ` Nathan Neff
2019-08-08 15:48 ` Adam Porter
2019-08-08 19:05   ` Nathan Neff
2019-08-09 11:03     ` Adam Porter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAC=HedBG17ihPFpn1ic5YE4jojx12=gNabiDh9Km=zK27p1TSw@mail.gmail.com' \
    --to=nathan.neff@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=sacha@sachachua.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).