Edit helm-occur
results with wgrep
#2665
-
Hi all, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Marcello Ranone ***@***.***> writes:
Hi all,
I was wondering how to edit the saved buffer generated by helm-occur with wgrep, similarly to what I can do with helm-do-grep-ag.
So when I type helm-occur I select the action "Save buffer", that creates me a helm-occur buffer.
I expected that after wgrep-change-to-wgrep-mode + changes + wgrep-finish-edit I was able to modify the occurrences in the buffer,
but the function returns with "(No changes to be performed)".
Do you have any clue on how I can apply the changes?
I guess you don't have installed and or loaded wgrep-helm.el, here I
install wgrep from source (git) and the file is included but IIRC there
is a package providing this file.
With this installed it is working fine here.
…
Thanks in advance
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
--
Thierry
|
Beta Was this translation helpful? Give feedback.
-
Marcello Ranone ***@***.***> writes:
1. ( ) text/plain (*) text/html
I've found why it doesn't work on my side. I had changed the helm-occur-transformer function to display results in this fashion %4s %s
instead of %s:%s to have line numbers aligned.
By reverting the change it works as expected. I guess wgrep needs occurrences to be in the form line_number:file.
Not exactly, wgrep needs file:linum:xxxxxxx or linum:xxxxxxx where linum
contains a text property handling file or buffer name (helm grep or helm
occur).
… —
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
--
Thierry
|
Beta Was this translation helpful? Give feedback.
I've found why it doesn't work on my side. I had changed the
helm-occur-transformer
function to display results in this fashion%4s %s
instead of%s:%s
to have line numbers aligned.By reverting the change it works as expected. I guess wgrep needs occurrences to be in the form
line_number:file
.