To see how you might use TeXmacs in this way, see:
https://jeffhuang.com/productivity_text_file/
https://news.ycombinator.com/item?id=22276184
But of course, TeXmacs would be a lot nicer to use than a plain text editor for this purpose.
What do you think? Have you tried using TeXmacs in this way?