Your comments

5 years later, still annoyed by this issue.

At least I would like it to save the file on the app close, but not in the middle of editing.

While editing configs which are reloaded on file change, Textastic corrupts them.