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.

  • If not using helm, ag + multiple cursors / query-replace-regexp can do a very good job. – 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
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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.