From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: org-mode, grep and folding issue Date: Sat, 05 Dec 2009 13:34:11 -0500 Message-ID: <87ws11w9r0.fsf@fastmail.fm> References: <39143.98166.qm@web45108.mail.sp1.yahoo.com> <356CAC89-E3C3-4A4E-99D6-DFA870194E35@gmail.com> 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 1NGzSg-0003RR-Hu for emacs-orgmode@gnu.org; Sat, 05 Dec 2009 13:34:30 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGzSc-0003Oa-49 for emacs-orgmode@gnu.org; Sat, 05 Dec 2009 13:34:30 -0500 Received: from [199.232.76.173] (port=42561 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGzSb-0003OL-QV for emacs-orgmode@gnu.org; Sat, 05 Dec 2009 13:34:25 -0500 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:47038) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NGzSc-0005VS-0H for emacs-orgmode@gnu.org; Sat, 05 Dec 2009 13:34:26 -0500 In-Reply-To: <356CAC89-E3C3-4A4E-99D6-DFA870194E35@gmail.com> (Doug Hellmann's message of "Sat, 5 Dec 2009 11:25:58 -0500") 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: Doug Hellmann Cc: Emacs Org-mode , Good Bad Doug Hellmann writes: > On Dec 5, 2009, at 10:22 AM, Good Bad wrote: > >> My notes are scattered across various org files. So I use grep >> (usually M-x lgrep and M-x rgrep) to search my notes. When I click >> one of the grep results (in the *grep* buffer), it leads to where >> the match is, but often the corresponding line is hidden because it >> is inside a folded heading in an org file. In that case, I need to >> press (org-shifttab) to cycle through global visibility >> levels to start editing the line. Is there a way to not have to >> press ? > > If all of the files are being added to your agenda, you can search > with "C-c a s " and the agenda view will show your results. I'd also recommend the agenda's multi-occur search ("C-c a /"), which displays all matching lines in the agenda and reveals them properly when you press return. In short, use "C-c a s" when you want to see all headlines containing a word/regexp. Use "C-c a /" when you want to see the matching lines in the results. - Matt