From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Search all `org-agenda-files' Date: Thu, 17 Apr 2008 08:12:01 -0400 Message-ID: <87fxtkbrzi.fsf@gollum.intra.norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JmSyG-0003hA-Hz for emacs-orgmode@gnu.org; Thu, 17 Apr 2008 08:12:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JmSyF-0003g1-R5 for emacs-orgmode@gnu.org; Thu, 17 Apr 2008 08:12:08 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JmSyF-0003fe-Jt for emacs-orgmode@gnu.org; Thu, 17 Apr 2008 08:12:07 -0400 Received: from mho-02-bos.mailhop.org ([63.208.196.179]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JmSyF-0001tc-Ae for emacs-orgmode@gnu.org; Thu, 17 Apr 2008 08:12:07 -0400 In-Reply-To: (Leo's message of "Thu\, 17 Apr 2008 10\:57\:45 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Leo Cc: emacs-orgmode@gnu.org Leo 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