Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live preview option when editing decrypted notes #159

Open
CWalshie opened this issue Apr 5, 2024 · 4 comments
Open

Live preview option when editing decrypted notes #159

CWalshie opened this issue Apr 5, 2024 · 4 comments
Labels
editor limitation The encrypted notes editor is basic and may never have all the rich features of the Obsidian editor feat-whole-note Feature: Whole note encryption in testing Released in a beta version for testing
Milestone

Comments

@CWalshie
Copy link

CWalshie commented Apr 5, 2024

Hey folks,

Apologies if I'm missing something here, but it'd be awesome to be able to use Obsidian's live preview view when editing decrypted notes. I love having my markdown automatically render instead of just seeing the 'source' code (and of course the 'reading' view doesn't allow editing). Not sure whether this is easy or possible to implement but would be a big UX boost for me :)

Cheers!

@meld-cp meld-cp added editor limitation The encrypted notes editor is basic and may never have all the rich features of the Obsidian editor feat-whole-note Feature: Whole note encryption labels Apr 5, 2024
@meld-cp
Copy link
Owner

meld-cp commented Apr 6, 2024

Hey, yeh, it was a limitation of the editor view I was using... I have been working on an update...

If you are up for it, please make a backup of your vault and test v2.4.0-beta if possible.

@CWalshie
Copy link
Author

Hey @meld-cp, thanks for the reply and beta link! I've been using the v2.4.0 beta for a week or so now.

  • As far as I can tell, there's no way to encrypt or ‘lock’ a file after I’ve entered the password and started editing — this was the case after setting the password as well. I can’t see a lock icon in the corner of the note, like with the previous version. I very well might be missing something obvious here.
  • After I’ve entered the password and started editing, the only option I can see related to the plugin in the context menu is to ‘Decrypt note’. Not sure if this is intentional as it seems the note is already decrypted inside of Obsidian?
  • Live preview mode works really well! Love it. :)

@meld-cp
Copy link
Owner

meld-cp commented Apr 12, 2024

Hey @CWalshie, thanks for testing, I'm glad it's working well for you.

  • As far as I can tell, there's no way to encrypt or ‘lock’ a file after I’ve entered the password and started editing — this was the case after setting the password as well. I can’t see a lock icon in the corner of the note, like with the previous version. I very well might be missing something obvious here.

Ah, yes, I must have forgotten to add the 'lock and close' option back in... I'll add it to the todo list... the workaround for now would be to close the note and run the 'Clear Session Password Cache' from the command palette (or close Obsidian, or wait for the password session cache to timeout).

  • After I’ve entered the password and started editing, the only option I can see related to the plugin in the context menu is to ‘Decrypt note’. Not sure if this is intentional as it seems the note is already decrypted inside of Obsidian?

Yeah, that might be a bit misleading, in this case 'Decrypt note' means 'turn it into a normal/unencrypted' note. Similarly, if you click on a normal note you should see an 'Encrypt note' option.

  • Live preview mode works really well! Love it. :)

🥳🤞

@meld-cp
Copy link
Owner

meld-cp commented May 18, 2024

2.4.0-beta.2 adds a 'Lock & Close' command

@meld-cp meld-cp added the in testing Released in a beta version for testing label May 18, 2024
@meld-cp meld-cp added this to the v2.4.0 milestone Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor limitation The encrypted notes editor is basic and may never have all the rich features of the Obsidian editor feat-whole-note Feature: Whole note encryption in testing Released in a beta version for testing
Projects
None yet
Development

No branches or pull requests

2 participants