From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: A simple way to search only headlines
Date: Wed, 12 Jun 2013 01:55:59 +0200 [thread overview]
Message-ID: <8738sop5gw.fsf@gmail.com> (raw)
In-Reply-To: 20130611220112.GB30597@kuru.dyndns-at-home.com
Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:
Hi Suvayu,
> On Tue, Jun 11, 2013 at 04:42:28PM +0200, Thorsten Jolitz wrote:
>> Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:
>>
>> > I wonder if semantic search can be leveraged to achieve the same. It
>> > might open other possibilities: searching only links, list items, source
>> > blocks, ... I think you get the point. :-p
>>
>> navi-mode.el works for Org-mode buffers too, e.g. using
>
> I think you misunderstood somewhat what I was suggesting.
>
> As far as I understand, navi-mode uses an interface like occur; it
> presents a separate buffer with the results which you can then use to
> navigate to the results. Am I correct?
yes, it works on top of occur-mode in a separate buffer, but *Navi*
buffer are permanent, and there can exist many of them at the same time.
> What I was suggesting (and how I understood the OPs question) was, to
> restrict regular (i)search to headlines.
[...]
> As far as I know, functionality like this exists for traditional source
> code buffers using semantic search. I was wondering if it is possible
> to leverage that mechanism to get the behaviour described above. If it
> is indeed possible, it could be hacked to work for other Org syntax
> elements like links, lists, source blocks, drawers, etc.
>
> Hopefully I didn't misunderstand your post and I was clearer expressing
> myself this time.
I think I more or less understood what the thread was about, but thanks
anyway for the clarification. Of course navi-mode does not offer
"semantic search" within an Org-mode buffer. But for practical purposes
it might be worth mentioning that typing one digit between 1 and 8 and
then C-s or C-r in the *Navi* buffer lets you already search easily only
in the headlines of an Org file. And many other views on a file are
possible, that can then be searched by standard commands. With keyboard
macros and switching between original buffer and *Navi* buffer (and
using org-mark-element e.g.), a lot can be achieved without the need of
writing any elisp code.
--
Cheers,
Thorsten
prev parent reply other threads:[~2013-06-11 23:56 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-01 16:35 A simple way to search only headlines Xebar Saram
2013-06-01 20:10 ` Tassilo Horn
2013-06-03 7:48 ` Sebastien Vauban
2013-06-03 12:16 ` Xebar Saram
2013-06-04 7:18 ` Thorsten Jolitz
2013-06-04 7:50 ` Sebastien Vauban
2013-06-07 20:31 ` Xebar Saram
2013-06-07 21:50 ` Richard Lawrence
2013-06-08 0:05 ` Xebar Saram
2013-06-08 0:34 ` Richard Lawrence
2013-06-08 5:25 ` Nick Dokos
2013-06-10 7:34 ` Sebastien Vauban
2013-06-10 13:06 ` Nick Dokos
2013-06-10 15:04 ` Sebastien Vauban
2013-06-11 4:31 ` Nick Dokos
2013-06-11 12:27 ` Suvayu Ali
2013-06-11 14:42 ` Thorsten Jolitz
2013-06-11 22:01 ` Suvayu Ali
2013-06-11 23:55 ` Thorsten Jolitz [this message]
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=8738sop5gw.fsf@gmail.com \
--to=tjolitz@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).