emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: Search files in a folder


From: Matt Lundin
Subject: [Orgmode] Re: Search files in a folder
Date: Sun, 12 Sep 2010 21:51:33 -0400
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

Eric S Fraga <address@hidden> writes:

> On Mon, 13 Sep 2010 04:11:48 +0900, 노정태 <address@hidden> 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.
`----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]