[Top][All Lists]

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

[Orgmode] Re: Search all `org-agenda-files'

From: Bernt Hansen
Subject: [Orgmode] Re: Search all `org-agenda-files'
Date: Thu, 17 Apr 2008 08:12:01 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Leo <address@hidden> writes:

> Have you ever wanted to retrieve some information from your org files
> regarding some projects?
> I wonder whether a command similar to `occur' but applies to all files
> listed in `org-agenda-files' and their corresponding ARCHIVED files
> might be desirable for org users.

It seems to me that grep works just fine for this application.  I put
all my org files under a single directory so that a single recursive
grep for a regexp over *.org and *.org_archive gets me the information I
want.  Then I use org to edit/read the files at the specific line

If you do this in org-mode do you only search files in org-agenda-files
(and maybe their archives?).  If you scatter files around a lot how do
you locate them all for the search?

$ find $HOME -name '*.org' -o -name '*.org_archive' | xargs grep -n -e $REGEXP

is probably simpler.


reply via email to

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