I am currently using a simple 7zip archive that I open with Gnome Archive Manager, and that level of encryption would be fine for my needs, but Gnome Archive Manager does copy the file to the temp directory to allow text editors to access the file, and if I, by mistake, close the Gnome Archive Manager app before the text editor the file remains there. The same is true if I use 7zip programs in android.
Is there a sort of 7zip program that can open 7zip encrypted archives but also has an integrated, basic, text editor so that a plain version of the file is never exposed outside the program ? (and it would be great if it exists also for Android on top of Linux)
Are there alternative to consider? I am aware of KeePass(xc) but that is a password manager, while I am looking for keep safe just a single text file