4

I've seen this demonstrated before in various screencasts and can't find it searching through the docs. I do use helm-swoop-edit quite often in a single buffer but when I need to change all occurrences across a project it gets a bit tedious.

For bonus points if there is a utility function to build such a buffer from helm results? I'd be very interested as my general project searching methods are helm-git-grep, helm-do-grep and helm-do-ag.

Malabarba
  • 22,878
  • 6
  • 78
  • 163
stsquad
  • 4,626
  • 28
  • 45
  • *If not using helm*, `ag` + *multiple cursors* / `query-replace-regexp` can [do a very good job](http://emacs.stackexchange.com/a/243/115). – Kaushal Modi Jun 17 '15 at 17:11
  • @kaushalmodi: ahh wgrep-mode is what I want. M-x `helm-git-grep`, action [f3] "Save results to grep buffer", wgrep-change-to-wgrep-mode. – stsquad Jun 18 '15 at 13:59

1 Answers1

3

It's documented in helm's wiki: 8.10. Save grep session, when using helm-occur/helm-do-grep/helm-do-ag, you can use C-x C-s to save search result to buffer, after installing wgrep-helm, you can use wgrep's commands to edit that buffer.

xuchunyang
  • 14,302
  • 1
  • 18
  • 39