@neauoire When I wrote my text editor years ago, that was one of the hardest thing I had to figure out.
In the end, I could write a program that would tell me where it needed to be, so I expanded that into something that wrote unit tests to make sure my "real" logic was correct.
Wasn't very efficient at 15k tests though, but at least it was only 8 seconds to run.
@neauoire No. I ended up writing four novels with it (~250k words), but then hit enough things that I couldn't fix without a massive restructure.
Then started over again about six more times over the next ~14 years. :D
@neauoire It's part of Author Intrusion, my attempt at writing an IDE for writing novels including refactoring, find usages, etc.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!