Closed cpitclaudel closed 9 years ago
I don't know of a very simple way. Seems as if you have to copy the isearch-query-replace function, replace the (perform-replace ...)
part with something that calls vr--interactive-get-args
, but with the regexp string already set. This functionality is not there and would probably require modifications to vr--interactive-get-args
.
I do wonder why isearch-query-replace
needs to be so long, seems like that could have been made a lot simpler.
In isearch mode, typing C-M-% launches
isearch-query-replace-regexp
, which in turn callsquery-replace-regexp
with the current search as the regexp search string.Is there a simple way to achieve similar behaviour using vr? Ideally something like: