3

Windows 10, Emacs 25.1, Helm

I want to find text "test3". So I use helm-occur

enter image description here

As result I get 5 candidates. Nice.

Now I want to edit text direct in buffer helm-occur.

How I can do this?

1 Answer 1

3

Install the package wgrep-helm, then

  1. Save the occur result to a separate buffer with C-x C-s (helm-moccur-run-save-buffer)
  2. Change to wgrep mode with C-c C-p (wgrep-change-to-wgrep-mode)
  3. Edit the buffer like a normal buffer
  4. Apply the changes with C-x C-s (wgrep-finish-edit)

By the way, the above is documented via C-h m (helm-help).

6
  • I need direct edit "Helm-occur" AND as result the buffer "text.txt" to change "on fly". Is it possible? Commented Aug 15, 2018 at 12:16
  • Maybe better use package "Emacs-wgrep" because "wgrep-helm" was closed ? Commented Aug 15, 2018 at 12:26
  • @Alexei The package name is wgrep-helm, which is provided by the project Emacs-wgrep. Commented Aug 15, 2018 at 12:59
  • Can one put C-x C-s to action list? And how to bind C-c C-p in the "save buffer" mode? Commented Aug 15, 2018 at 14:11
  • @theldoria C-x C-s is a normal Emacs command, not a helm action. It doesn't make sense to add it to the action list. C-c C-p is the default binding out of box (assuming you are a package.el user and having the package wgrep-helm installed.). Commented Aug 15, 2018 at 15:31

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.