emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Lee Hinman <hinman@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org-sparse-tree on region or subtree?
Date: Fri, 11 Mar 2011 15:56:58 -0600	[thread overview]
Message-ID: <m2fwqtwcb9.fsf@chimera-eth.lhinman.com> (raw)

Is it possible to run org-sparse-tree on a specific region or subtree of
an org file?

I have an Org file with the following structure

* 2010...
* 2011
** 2011-01 January...
** 2011-02 February
*** 2011-02-01 Tuesday
**** Alice
- Plain list item 1
- Plain list item 2
**** Bob
- Plain list item a
- Plain list item b
*** 2011-02-08 Tuesday
**** Alice
- Plain list item 3
- Plain list item 4
**** Bob
- Plain list item c
- Plain list item d

I'd like to be able to be able to run a command and see all the Alice
entries for 2011-02 February.  It seems like a sparse tree (with a regex
for Alice) on the 2011-02 February subtree would give me that.  But I
*think* org-sparse-tree uses org-occur which always starts at
point-min, but I could easily be mis-reading the code.

Does anyone have any ideas?

Lee Hinman

             reply	other threads:[~2011-03-11 21:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-11 21:56 Lee Hinman [this message]
2011-03-12  1:18 ` org-sparse-tree on region or subtree? Bernt Hansen
2011-03-13 14:41   ` Lee Hinman

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:

  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=m2fwqtwcb9.fsf@chimera-eth.lhinman.com \
    --to=hinman@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* 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


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).