emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-mode, grep and folding issue
@ 2009-12-05 15:22 Good Bad
  2009-12-05 16:25 ` Doug Hellmann
  2009-12-05 20:51 ` Bernt Hansen
  0 siblings, 2 replies; 4+ messages in thread
From: Good Bad @ 2009-12-05 15:22 UTC (permalink / raw)
  To: Emacs Org-mode

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 <S-tab> (org-shifttab) to cycle through global visibility levels to start editing the line. Is there a way to not have to press <S-tab>?


      

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-mode, grep and folding issue
  2009-12-05 15:22 org-mode, grep and folding issue Good Bad
@ 2009-12-05 16:25 ` Doug Hellmann
  2009-12-05 18:34   ` Matt Lundin
  2009-12-05 20:51 ` Bernt Hansen
  1 sibling, 1 reply; 4+ messages in thread
From: Doug Hellmann @ 2009-12-05 16:25 UTC (permalink / raw)
  To: Good Bad; +Cc: Emacs Org-mode


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 <S-tab> (org-shifttab) to cycle through global visibility  
> levels to start editing the line. Is there a way to not have to  
> press <S-tab>?

If all of the files are being added to your agenda, you can search  
with "C-c a s <regex>" and the agenda view will show your results.

Doug

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-mode, grep and folding issue
  2009-12-05 16:25 ` Doug Hellmann
@ 2009-12-05 18:34   ` Matt Lundin
  0 siblings, 0 replies; 4+ messages in thread
From: Matt Lundin @ 2009-12-05 18:34 UTC (permalink / raw)
  To: Doug Hellmann; +Cc: Emacs Org-mode, Good Bad

Doug Hellmann <doug.hellmann@gmail.com> 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 <S-tab> (org-shifttab) to cycle through global visibility
>> levels to start editing the line. Is there a way to not have to
>> press <S-tab>?
>
> If all of the files are being added to your agenda, you can search
> with "C-c a s <regex>" 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-mode, grep and folding issue
  2009-12-05 15:22 org-mode, grep and folding issue Good Bad
  2009-12-05 16:25 ` Doug Hellmann
@ 2009-12-05 20:51 ` Bernt Hansen
  1 sibling, 0 replies; 4+ messages in thread
From: Bernt Hansen @ 2009-12-05 20:51 UTC (permalink / raw)
  To: Good Bad; +Cc: Emacs Org-mode

Good Bad <nbko3@yahoo.com> writes:

> 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
> <S-tab> (org-shifttab) to cycle through global visibility levels to
> start editing the line. Is there a way to not have to press <S-tab>?

I have f9-v bound to visible-mode which toggles folding on and off for
the entire file.

YMMV,

Bernt

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-12-05 20:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-05 15:22 org-mode, grep and folding issue Good Bad
2009-12-05 16:25 ` Doug Hellmann
2009-12-05 18:34   ` Matt Lundin
2009-12-05 20:51 ` Bernt Hansen

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).