From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Search all `org-agenda-files' Date: Fri, 18 Apr 2008 08:45:11 -0400 Message-ID: <87prsnbaco.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 1Jmpy0-0000bD-Ob for emacs-orgmode@gnu.org; Fri, 18 Apr 2008 08:45:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jmpxw-0000aH-9y for emacs-orgmode@gnu.org; Fri, 18 Apr 2008 08:45:24 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jmpxw-0000a8-0w for emacs-orgmode@gnu.org; Fri, 18 Apr 2008 08:45:20 -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 1Jmpxv-0004fw-OQ for emacs-orgmode@gnu.org; Fri, 18 Apr 2008 08:45:19 -0400 In-Reply-To: (Carsten Dominik's message of "Fri\, 18 Apr 2008 05\:44\:45 +0200") 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: Carsten Dominik Cc: emacs-orgmode@gnu.org, Leo Carsten Dominik writes: > Internal commands for this in Org are: > > 1. multi-occur, a standard emacs command. To apply it to the > agenda files, call it through the agenda dispatcher, for me this > is `C-c a /'. > > That does not include any archive files though. To do so, > get the new version from the git repo and do > > (setq org-agenda-text-search-extra-files '(agenda-archives)) > Great! I learn more useful org-mode/Emacs commands everyday :) > 2. You can also use search view, which is a new agenda view and allows > you > to search for multiple words and/or regexps which all need to match > in an > entry, not necessarily in a single line. It searches for whole > words, not > partial words. Hmm, maybe it should for partial words as well? > > C-c a S +word1 +word2 -excludethisword RET C-c a s +word1 +word2 -excludethisword RET ^ lowercase 's' > > This also searched the extra files defined above. I tried this with the org-agenda-text-search-extra-files setting above and it runs through each of my archives stating they don't exist. non-existent file todo.org_archive. [R]emove from list or [A]bort? Maybe it's looking in the wrong directory? Thanks for this. I can see this will be really useful for digging up my old notes in my (now huge) org files (and their archives) :-) Regards, Bernt