/grep-write.kak

write changes from kakoune's *grep* buffer to respective files, (taken from occivink/kakoune-find)

Primary LanguageKakouneScriptThe UnlicenseUnlicense

grep-write.kak

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)

Installation

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

To install grep-write.kak with plug.kak add this to your kakrc:

plug "JacobTravers/grep-write.kak"

Finding

Call the builtin grep command.

Replacing

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)

License

Unlicense