* org-sparse-tree on region or subtree?
@ 2011-03-11 21:56 Lee Hinman
2011-03-12 1:18 ` Bernt Hansen
0 siblings, 1 reply; 3+ messages in thread
From: Lee Hinman @ 2011-03-11 21:56 UTC (permalink / raw)
To: emacs-orgmode
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
hinman@gmail.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: org-sparse-tree on region or subtree?
2011-03-11 21:56 org-sparse-tree on region or subtree? Lee Hinman
@ 2011-03-12 1:18 ` Bernt Hansen
2011-03-13 14:41 ` Lee Hinman
0 siblings, 1 reply; 3+ messages in thread
From: Bernt Hansen @ 2011-03-12 1:18 UTC (permalink / raw)
To: Lee Hinman; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: org-sparse-tree on region or subtree?
2011-03-12 1:18 ` Bernt Hansen
@ 2011-03-13 14:41 ` Lee Hinman
0 siblings, 0 replies; 3+ messages in thread
From: Lee Hinman @ 2011-03-13 14:41 UTC (permalink / raw)
To: emacs-orgmode
Bernt & Suvayu,
Thanks. Narrowing to subtree and then running org-sparse-tree worked great.
--
Lee
On Fri, Mar 11, 2011 at 7:18 PM, Bernt Hansen <bernt@norang.ca> wrote:
> 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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-13 14:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-11 21:56 org-sparse-tree on region or subtree? Lee Hinman
2011-03-12 1:18 ` Bernt Hansen
2011-03-13 14:41 ` Lee Hinman
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).