4 ms·
https://streamable.com/t4i5tx https://streamable.com/t4i5tx The highlights and fancy replacement preview are added by a plugin called anzu[0], but otherwise th
by arc-in-space 5y ago
https://streamable.com/t4i5tx https://streamable.com/t4i5tx
The highlights and fancy replacement preview are added by a plugin called anzu[0], but otherwise this is a standard emacs feature. I couldn't tell you what the default binding is but the function is query-replace-regexp.
(I don't understand why people are trying to bring multiple cursors into this)
[0] https://github.com/emacsorphanage/anzu https://github.com/emacsorphanage/anzu
- PaulDavisThe1st 5y agoI use replace-replace-regexp a lot. What was shown in the video was qualitatively different. Multiple sites were shown changing at the same time. That's not what q-r-r does, even with "bang" version mentioned above. You could actually see the old text replaceable by the being-entered new text.
- karthink 5y agoThe buffer was not being edited when the replacement was shown to be happening. The plugin anzu uses overlays[1] to show the text being replaced and the replacements. [1]: https://www.gnu.org/software/emacs/manual/html_node/elisp/Overlays.html https://www.gnu.org/software/emacs/manual/html_node/elisp/Ov...