meld-cp / obsidian-encrypt

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

Improve 'decrypt' function when 'Expand selection to whole line' is disabled #27

Closed therden closed 2 years ago

therden commented 2 years ago

At present, if the 'Expand selection to whole line' option is disabled, then one has to select the entire encrypted text (including the bracketing doubled %s) -- otherwise the Meld Encrypt commands don't appear in the Command Palette.[^1]

It would be better if, when the keys to bring up the Command Palette were pressed, the plug-in 1) detected when the cursor was located within a block of encrypted text, 2) selected that block of encrypted text, and then 3) brought up the Command Palette.

[^1]: I see that this previously was referenced in the following comment in a now-Closed issue: https://github.com/meld-cp/obsidian-encrypt/issues/20#issuecomment-952701683

meld-cp commented 2 years ago

fixed in v1.5.2

therden commented 2 years ago

Thank you! This much- improved functionality -- and the support for password hints -- have inspired me to nominate Obsidian Encrypt as a 'Gem of the Year'.

meld-cp commented 2 years ago

No problem, it was a good idea. Thanks for your support too 👍