From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Massive Org search Date: Wed, 04 Jan 2012 16:48:08 +0100 Message-ID: <87lipnbhaf.fsf@gnu.org> References: <877h17trsu.fsf@iro.umontreal.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RiT3S-0000CV-3M for emacs-orgmode@gnu.org; Wed, 04 Jan 2012 10:47:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RiT3O-0008Uw-1y for emacs-orgmode@gnu.org; Wed, 04 Jan 2012 10:47:06 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:62800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RiT3N-0008Uk-QR for emacs-orgmode@gnu.org; Wed, 04 Jan 2012 10:47:02 -0500 Received: by wgbdt11 with SMTP id dt11so22535355wgb.30 for ; Wed, 04 Jan 2012 07:47:00 -0800 (PST) In-Reply-To: <877h17trsu.fsf@iro.umontreal.ca> (=?iso-8859-1?Q?=22Fran=E7o?= =?iso-8859-1?Q?is?= Pinard"'s message of "Wed, 04 Jan 2012 10:23:45 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?iso-8859-1?Q?Fran=E7ois?= Pinard Cc: emacs-orgmode@gnu.org Hi François, pinard@iro.umontreal.ca (François Pinard) writes: > I'm a rather recent Org mode user. Consolidating my previous data into > Org mode gave 385 files using 5,5 Mb. I quickly found out that this is > too much for Org mode, if I want to be able to search it all using Org > mode means. So, I segregated a handful of agenda files, and developed a > small tool for when I need a massive org search (which is often). Let > me share it, in case useful to others. For the code, see: > > http://stackoverflow.com/questions/6554110/emacs-outline-mode-auto-expand-upon-grep/8439425 > > The idea is simple: just use a recursive grep and normal compile-type > buffer and commands, yet add a bit of code to reveal hidden text which > is being located by the compile commands. Also manage so that a mere > C-s on the located buffer immediately show all occurrences. I guess your code runs faster, but you might be interested in M-x org-occur-in-agenda-files RET HTH, -- Bastien