meld-cp / obsidian-encrypt

Hide secrets in your Obsidian.md vault
MIT License
544 stars 32 forks source link

Make it easier to reveal the in-place encrypted text #150

Open situfang opened 5 months ago

situfang commented 5 months ago

Obsidian-encrypt is a great plugin to hide sensitive data in notes. I like the in-place encryption feature, and have a small suggestion to improve the experience:

To reveal your encrypted text in Editing View:

  1. Click anywhere on encrypted text. image

  2. The decryption dialog pops up and asks for the password. image

  3. Enter the correct password.

  4. Your decrypted text is revealed in a dialog window.

Compared with the current interaction method, clicking on the encrypted paragraph and popping up the dialog box (click on the small lock in Reading View) is simpler than manually running the "Encrypt/Decrypt" command from the palette.

Is it possible? Thanks for the great plugin!

situfang commented 5 months ago

I think in-place encryption is a very good feature because it can be combined with Obsidian's other features such as Links, Tags, Search, etc., and the user only hides the text he thinks needs to be encrypted. Whole notes encryption(.mdenc file) actually sacrifices a lot of Obsidian features.

If there is a unified "Encryption/Decryption" command, it will be more convenient to integrate with plug-ins such as toolbar or menu. When the user triggers this command in a Note, if there is no text selected, a dialog box will pop up to prompt for Whole notes encryption; if When text is selected, in-place encryption is performed; if it is detected that there is encrypted text in the selected text, the decryption action of the pop-up box is performed.

meld-cp commented 4 months ago

Have you tried binding the command to a hotkey?

image

felixqueisler commented 3 months ago

I'd say how it is right now is an awesome MVP. I can imagine some improvements, especially through GUI, similar to how the code block formatting is utilised.

I attached a mockup for the UI-idea (with an additional idea for context menu option with selected text): Meld Encrypt Issue 150 Mockup