Skip to content

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

License

Notifications You must be signed in to change notification settings

jtrv/grep-write.kak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks