emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Manish <mailtomanish.sharma@gmail.com>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Show parent PROJECTS for an item
Date: Tue, 19 May 2009 08:31:00 +0530	[thread overview]
Message-ID: <e7cdbe30905182001j113ff356k5cf6446461444b16@mail.gmail.com> (raw)
In-Reply-To: <2BA22C73-CD1F-4791-BA0C-E7112CABD4ED@gmail.com>

  On Sat, May 16, 2009 at 8:41 PM, Carsten Dominik wrote:
  >
  > On May 15, 2009, at 11:33 PM, Marcelo de Moraes Serpa wrote:
  >
  >> Hello list,
  >>
  >> I'd like to do a little modification to the code that grabs the
  >> summary of items for the agenda view. For each item that has a
  >> parent with a PROJECT type, I'd like org to render this parent in
  >> a hierarchical, tree way, like this:.
  >>
  >> Let's say I search for a specific item using a regexp. This item
  >> has three parents, which all are PROJECTS, it would show like
  >> this:
  >>
  >>
  >> PROJECT My project
  >>  PROJECT My sub-project
  >>    PROJECT My sub-sub-project
  >>      NEXT Call Liz to check if the account has been created
  >> :@call:@work:
  >>
  >> So, searched for Liz and got this specific item, but org then
  >> would give me more context, showing me to which project it
  >> belongs to. Not sure if it's already possible, but if not, would
  >> be a great addition to support the GTD system, IMO :)
  >
  > The purpose of the flat agenda list is to be compact, and what you
  > want would defeat that purpose.
  >
  > If you are working with a single file, a sparse tree might be the
  > best alternative. If not, you could give follow mode in the agenda
  > a try.
  >

Follow mode is fit for the purpose when you are _in_ Emacs but when
you want to print and take your lists along then missing context can
be confusing.  Would it be possible to encode the task hierarchy into
the task display like so:

,----[ sample tree ]
| * PROJECT Take over the world
| ** SUBPROJ Make a plan
| *** TODO Print a trillion dollars
`----

,----[ sample todo list ]
|    TODO Take over the world/Make a plan/Print a trillion dollars
| or TODO Print a trillion dollars [Take over the world/Make a plan]
| or [Take over the world/Make a plan] TODO Print a trillion dollars
| or TODO [Take over the world/Make a plan] Print a trillion dollars
| or TODO Print a trillion dollars\Make a plan\Take over the world
`----

Personally I prefer the last one most.  The number of characters added
from each node, and/or the numbers of nodes added and/or the total
length of todo item in agenda can be made configurable to limit the
length of the agenda lines.

At present, some of us try to be more descriptive when defining a task
so as to identify the context from the task alone.  If this is
implemented, we can try to be succinct instead.

Of course, I do not know elisp nor do I understand Org internals so
the idea might just be nonsense from an implementation perspective.

Regards,
-- 
Manish

  parent reply	other threads:[~2009-05-19  3:01 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-15 21:33 Show parent PROJECTS for an item Marcelo de Moraes Serpa
2009-05-16 15:11 ` Carsten Dominik
2009-05-17 20:58   ` Eraldo Helal
2009-05-17 21:25     ` Matthew Lundin
2009-05-17 22:18       ` Eraldo Helal
2009-05-18  2:07         ` Matthew Lundin
2009-05-18  9:18           ` Eraldo Helal
2009-05-18 15:52             ` Marcelo de Moraes Serpa
2009-05-18 16:21           ` Samuel Wales
2009-05-18 22:01             ` Eraldo Helal
2009-05-18 22:16               ` Samuel Wales
2009-05-18 22:47                 ` Eraldo Helal
2009-05-18 23:01                   ` Eraldo Helal
2009-05-19  3:01   ` Manish [this message]
2009-05-19 15:48     ` Eraldo Helal
2009-05-19 21:27       ` Marcelo de Moraes Serpa
2009-05-19 22:06         ` Eraldo Helal
2009-05-19 22:29         ` Matthew Lundin
2009-05-19 22:55           ` Eraldo Helal
2009-05-19 23:06             ` Marcelo de Moraes Serpa
2009-05-20  4:52               ` Carsten Dominik
2009-05-20  1:52             ` Nick Dokos
2009-05-20  4:20         ` Manish

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=e7cdbe30905182001j113ff356k5cf6446461444b16@mail.gmail.com \
    --to=mailtomanish.sharma@gmail.com \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).