Thanks for sharing. There are some other tools that allow you to see changes between different revisions of files in git. For example-GitKraken, SourceTree etc.
There is KiRI which allows for graphical rather than textural comparisons. The new KiCad-cli should help streamline this approach. KiRI supports git as well as fossil and svn. This sort of textural massaging is very helpful and could help to improve the textural diff component of kidiff.
BTW, I tried your changes and for some reason the \b was causing the match to fail (I don’t really understand why, I think it should work?) As you can probably tell, I’m not a SW engineer…
Here’s a slightly tweaked version that ended up working for me (I updated the blog post to use this instead):