mattlqx / pre-commit-search-and-replace

Plugin for pre-commit for arbitrary search and replace on committed files.
MIT License
12 stars 7 forks source link

add color to output, show match length and replacement if specified #16

Closed mattlqx closed 6 months ago

mattlqx commented 6 months ago

Fixes #11

Colorizes the output some to make it more readable.

I also did some work to make the output display the length of the match and another block to show what the line is changing to.

Screenshot 2024-03-24 at 11 27 58