Why don't you want someone to not see the encrypted file? Why encrypt it then? You can just read-protect the file...
Anyway you won't be able to activate decryption on double click if you want to operate on text files, because all text files would then be opened by the application instead of the text editor. You'd have to find a way to differenciate between an encrypted file and a plain text file (for example by using some header) and either decrypt or call a text editor. Be warned that this may render your desktop installation useless if you do that incorrectly. And users will still be able to read the encrypted file by opening it in a text editor.
Bookmarks