emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: Lee Hinman <hinman@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-sparse-tree on region or subtree?
Date: Fri, 11 Mar 2011 20:18:14 -0500	[thread overview]
Message-ID: <87fwqtxhk9.fsf@norang.ca> (raw)
In-Reply-To: <m2fwqtwcb9.fsf@chimera-eth.lhinman.com> (Lee Hinman's message of "Fri, 11 Mar 2011 15:56:58 -0600")

Lee Hinman <hinman@gmail.com> writes:

> 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?

Narrow to subtree, then run org-sparse-tree normally, then widen maybe?
-- 
Bernt

  reply	other threads:[~2011-03-12  1:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-11 21:56 org-sparse-tree on region or subtree? Lee Hinman
2011-03-12  1:18 ` Bernt Hansen [this message]
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:
  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=87fwqtxhk9.fsf@norang.ca \
    --to=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=hinman@gmail.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).