meld-cp / obsidian-encrypt

Hide secrets in your Obsidian.md vault
MIT License
607 stars 36 forks source link

Make decrypt less clunky when expand to whole line setting is off #26

Closed meld-cp closed 2 years ago

meld-cp commented 2 years ago

Decrypt is a little clunky because I have to highlight the whole encrypted text for the decrypt command to work. If highlighting partial of the text then it trys to run encrypt.

Originally posted by @jin-ahn in https://github.com/meld-cp/obsidian-encrypt/issues/20#issuecomment-952701683

meld-cp commented 2 years ago

Perhaps if nothing is selected (and expand to whole line is off), assume user wants to decrypt. Search for left and right markers then decrypt. If no marker found show a notice.