From: Matthew Lundin <mdl@imapmail.org>
To: Robert Goldman <rpgoldman@sift.info>
Cc: emacs-orgmode@gnu.org
Subject: Re: Possible to get a subtree agenda view?
Date: Sat, 13 Dec 2008 15:29:51 -0600 [thread overview]
Message-ID: <m2bpvf3gs0.fsf@fastmail.fm> (raw)
In-Reply-To: <4943F953.6010109@sift.info> (Robert Goldman's message of "Sat\, 13 Dec 2008 12\:05\:07 -0600")
Hi Robert,
Robert Goldman <rpgoldman@sift.info> writes:
> I have a @car category that I use to keep track of things I might want
> to do when out in the car. Getting the agenda view *almost* works for
> this. But often an item here indicates that I should visit some store,
> and underneath the item is a list of things to purchase. The agenda
> view, of course, suppresses that list. This means that printing out (or
> pushing to my palm) the agenda view isn't really what I want. I'd
> really like to have the subtree below the matching items (because I know
> the subtree is always trivial).
>
> I *think* I should be able to do this with a custom agenda command,
> using sparse trees, but I'm having a couple of problems figuring this out:
>
> 1. I don't really want a sparse tree, because I don't want anything
> "upstream" of the selected items.
See the variable org-show-hierarchy-above.
>
> 2. I want to force the matches to be expanded.
See the variable org-show-entry-below.
>
> 3. I want to match on a tag (@car) *and* on a TODO tag "TODO". I may
> be missing something, but I don't see any obvious conjunctive matching
> command in the sparse tree or agenda codes.
C-c / T +@car+TODO="TODO"
>
> Is there any existing way to do this, or should I start rooting around
> in the code?
For a custom agenda command:
(setq org-agenda-custom-commands
'(("f" tags-tree "+car+TODO=\"TODO\""
((org-show-entry-below t)
(org-show-hierarchy-above nil)))
;; other commands
))
I believe all of this is in the manual of the most recent version of
org.
Regards,
Matt
next prev parent reply other threads:[~2008-12-13 21:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-13 18:05 Possible to get a subtree agenda view? Robert Goldman
2008-12-13 21:29 ` Matthew Lundin [this message]
2008-12-13 22:35 ` Possible to get a subtree agenda view? --- possible bug? Robert Goldman
2008-12-14 5:34 ` Matthew Lundin
2008-12-14 19:43 ` Robert Goldman
2008-12-13 23:43 ` Possible to get a subtree agenda view? Robert Goldman
2008-12-14 13:46 ` Matthew Lundin
2008-12-14 19:14 ` Robert Goldman
2008-12-15 3:07 ` Matthew Lundin
2008-12-15 3:35 ` Robert Goldman
2008-12-15 10:50 ` Carsten Dominik
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=m2bpvf3gs0.fsf@fastmail.fm \
--to=mdl@imapmail.org \
--cc=emacs-orgmode@gnu.org \
--cc=rpgoldman@sift.info \
/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).