Just updated it, now uses regions instead of regexp. So, newlines can be inserted.. but that will shift the newlines.. and if you apply(aka commit changes) more than once, the file will end corrupt. I added an "alert" to avoid just that. Buf if you modify the file in another tab.. the same corruption can happens.. not a big deal for my use case.
Thinking.. To avoid this what we need is linked Regions... (regions that reflect the content of Regions in other files.. or buffers..) ... this will allow us to do all sort of hacks ala LightTable.. keep dreaming..
For my general purpose, (I like to rename things from time to time..) this is just great! bothers me just the following:
- Trivial: Hook CTRL/CMD+S to apply the changes (how to?)
- Annoying: Double click in these lines with numbers and a colon will open the file, default ST behaviour(how to disable it?)