This plugin is designed as the "replace" part of kakoune's "find & replace" workflow.
Special thanks to occivink for creating kakoune-find where this was implemented. (I just changed and trimmed it to my preference)
(I now typically use grug since it handles large grep-buffers and a higher volume of files and changes better)
With kak-bundle
The recommended way to install grep-write.kak is to use kak-bundle plugin manager.
To install grep-write.kak with kak-bundle add this to your kakrc
:
bundle grep-write.kak https://github.com/jtrv/grep-write.kak
With plug.kak
To install grep-write.kak with plug.kak add this to your kakrc
:
plug "jtrv/grep-write.kak"
Call the builtin grep
command.
Write the edits you would like to make in the *grep*
buffer. Then, call grep-write
and the changes will be applied to their respective files.
Any lines that were not modified are simply ignored.
(Upon completion it reports the # of changes applied and ignored)
Unlicense