emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: Eric S Fraga <e.fraga@ucl.ac.uk>
Cc: "org-mode mailing list" <emacs-orgmode@gnu.org>, 노정태 <basil83@gmail.com>
Subject: Re: Search files in a folder
Date: Sun, 12 Sep 2010 21:51:33 -0400	[thread overview]
Message-ID: <874oduqul6.fsf@archdesk.localdomain> (raw)
In-Reply-To: <8739teiwsq.wl%ucecesf@ucl.ac.uk> (Eric S. Fraga's message of "Sun, 12 Sep 2010 20:31:01 +0100")

Eric S Fraga <ucecesf@ucl.ac.uk> writes:

> On Mon, 13 Sep 2010 04:11:48 +0900, 노정태 <basil83@gmail.com> wrote:
>
>> I want to search org files in my /org folder.
>> But I can't find a command to search files wholly.
>> C-c a s (org-search-view) does search only with headline.
>> I can't search the contents of my org files with just one command.
>> 
>> Does Org-mode have the function what I'm looking for?
>
> maybe org-mode does not but of course emacs does: M-x grep RET
> or M-x occur RET
>

These work just fine. Org-mode also has a built-in interface to emacs'
multi-occur function --- it searches for (and displays) all lines
containing a given regexp in one's agenda files.[1]

Simply type:

C-c a / [regexp]

E.g.

C-c a / \(org\|org-\)mode


Best,
Matt

Footnotes:

[1] (info "(org) Agenda dispatcher")

,----
| `/'
|      Search for a regular expression in all agenda files and
|      additionally in the files listed in
|      `org-agenda-text-search-extra-files'.  This uses the Emacs command
|      `multi-occur'.  A prefix argument can be used to specify the
|      number of context lines for each match, default is 1.
`----

  parent reply	other threads:[~2010-09-13  1:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-12 19:11 Search files in a folder 노정태
2010-09-12 19:31 ` Eric S Fraga
2010-09-12 20:29   ` suvayu ali
2010-09-13  1:51   ` Matt Lundin [this message]
2010-09-13  4:09     ` 노정태
2010-09-13  4:22       ` suvayu ali
2010-09-13  7:15         ` 노정태
2010-09-13 16:19           ` Matt Lundin
2010-09-14 16:06             ` 노정태
2010-09-20  8:31             ` Bastien

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=874oduqul6.fsf@archdesk.localdomain \
    --to=mdl@imapmail.org \
    --cc=basil83@gmail.com \
    --cc=e.fraga@ucl.ac.uk \
    --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).