emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Directly search for Headlines?
Date: Mon, 07 Jul 2014 17:24:41 -0400	[thread overview]
Message-ID: <87fviczwti.fsf@alphaville.bos.redhat.com> (raw)
In-Reply-To: m21ttxaqey.fsf@gmail.com

Ken Mankoff <mankoff@gmail.com> writes:

> On 2014-07-07 at 15:11, Nick Dokos wrote:
>> Ken Mankoff <mankoff@gmail.com> writes:
>>
>>> On 2014-07-07 at 11:19, Nick Dokos wrote:
>>>> John Durden <johndurden@yandex.com> writes:
>>>>
>>>>> Can you search directly for headlines in all agenda-files, with the
>>>>> name of the headline, not tags? If so, how? If not, wouldn't this be
>>>>> useful?
>>>>>
>>>>
>>>> Try `s' in the agenda perhaps?
>>
>> Sorry, I meant `s' in the agenda dispatcher:
>>
>>     C-c a s
>>     C-c a S
>>
>
> I use the key combos you suggest all the time, but the OP wanted to just
> search HEADLINES. Maybe the above methods work if you use regex and
> exploit the fact that all headlines have "*" characters in them, but
> this use of regex seems a bit overly complex.
>

Yes, I understand that, but limiting the search space with C-c a s seems
to me to be a good solution for keyword searching. If there are too many
results, you can then do C-s of the same keyword in the resulting
results buffer and step exactly through the headlines that match.

It's not hard to write a more specialized tool either. I think an
application of org-map-entries could easily do what the OP wanted
(although the devil *will* be in the details). The question is whether
it's worth it, or whether the current tools adequately meet the need.

Nick

  reply	other threads:[~2014-07-07 21:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-07 14:06 Directly search for Headlines? John Durden
2014-07-07 15:19 ` Nick Dokos
2014-07-07 15:59   ` Ken Mankoff
2014-07-07 17:54     ` Thorsten Jolitz
2014-07-07 19:11     ` Nick Dokos
2014-07-07 19:58       ` Ken Mankoff
2014-07-07 21:24         ` Nick Dokos [this message]
2014-07-08 21:01     ` Samuel Wales
2014-07-08 21:31       ` Ken Mankoff
2014-07-28 17:56         ` Fabrice Niessen

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=87fviczwti.fsf@alphaville.bos.redhat.com \
    --to=ndokos@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).