Skip to content

Latest commit

 

History

History
50 lines (30 loc) · 1.38 KB

README.md

File metadata and controls

50 lines (30 loc) · 1.38 KB

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 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)

Installation

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

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

plug "jtrv/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