I’ve tried a lot of different note app. The best seamless solution I’ve found is Nextcloud + a simple notepad with the ability to autosave text to a txt file.
For example, suitable note-taking apps: Markor, Denkzettel, Lesser pad.
These applications have auto-save and auto-export to txt file. You can also select the Nextcloud folder to upload your notes to the cloud server.