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 trimmed it to my preference)
With cork.kak
The recommended way to install grep-write.kak is to use cork.kak plugin manager.
To install grep-write.kak with cork.kak add this to your kakrc
:
cork grep-write https://github.com/JacobTravers/grep-write.kak
With plug.kak
To install grep-write.kak with plug.kak add this to your kakrc
:
plug "JacobTravers/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