emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: Leo <sdl.web@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Search all `org-agenda-files'
Date: Thu, 17 Apr 2008 08:12:01 -0400	[thread overview]
Message-ID: <87fxtkbrzi.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <xbai8wzc4xd2.fsf@cam.ac.uk> (Leo's message of "Thu\, 17 Apr 2008 10\:57\:45 +0100")

Leo <sdl.web@gmail.com> 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
matches.

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.

-Bernt

  reply	other threads:[~2008-04-17 12:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-17  9:57 Search all `org-agenda-files' Leo
2008-04-17 12:12 ` Bernt Hansen [this message]
2008-04-17 14:34   ` Eddward DeVilla
2008-04-19 12:47   ` Mario Peter
2008-04-17 18:23 ` Jost Burkardt
2008-04-18  3:44 ` Carsten Dominik
2008-04-18  3:58   ` Carsten Dominik
2008-04-18  7:06   ` Leo
2008-04-18 12:45   ` Bernt Hansen
2008-04-18 13:31 ` Joel J. Adamson

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=87fxtkbrzi.fsf@gollum.intra.norang.ca \
    --to=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=sdl.web@gmail.com \
    /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).