Re: [O] using rgrep, ag, etc in folded org files?
Clément Pit--Claudel writes: > On 2016-09-12 11:36, Aaron Ecay wrote: >> (Arguably this hook function should be added to org-mode, if enough >> people find it useful). > > That would be brilliant. Adding my +1 to this, particularly if that would expand stuff in ediff merge situations also! Stig
Re: [O] using rgrep, ag, etc in folded org files?
You might find this package useful (it's mine ;): https://github.com/alphapapa/helm-org-rifle Or you can install it from MELPA. I have plans to look into using external tools to find matches someday. git grep seems like the most promising, but maybe ag or agrep could work too. In the meantime, you may find the existing functionality useful. It wouldn't be hard to customize it slightly to do what you want, although you might like the feature to open selected subtrees in indirect buffers. Please feel free to give feedback on the tracker. :)
Re: [O] using rgrep, ag, etc in folded org files?
On 2016-09-12 11:36, Aaron Ecay wrote: > (Arguably this hook function should be added to org-mode, if enough > people find it useful). That would be brilliant. signature.asc Description: OpenPGP digital signature
Re: [O] using rgrep, ag, etc in folded org files?
Hi Joakim, The function org-reveal needs to be run after the search is executed. If you are using the built-in emacs rgrep (for example), I think you need to add a function to next-error-hook. Grep for “add-hook 'occur-mode-find-occurrence-hook” in org.el for inspiration. (Arguably this hook function should be added to org-mode, if enough people find it useful). -- Aaron Ecay
[O] using rgrep, ag, etc in folded org files?
Hello, I would like to use ag search, or rgrep etc, to jump to matches in my org files, and have the matched lines tree be unfolded. - isearch works in a folded orgfile - jumping with occur in a folded file works - rgrep, ag, etc doesnt unfold the tree where the match is I found this 6 year old thread discussing the same issue: "org-mode, grep and folding issue". The thread described some workarounds which used agenda search or something like that. I would rather like to use helm-projectile though. Is it possible? -- Joakim Verona -- Joakim Verona