meld-cp / obsidian-encrypt

Hide secrets in your Obsidian.md vault
MIT License
563 stars 33 forks source link

.encrypted-files are not suggested for linking #59

Closed Gewerd-Strauss closed 1 year ago

Gewerd-Strauss commented 1 year ago
    Hmm, maybe restrict it to one of the three (edit/rendered/lp) to begin with?

Preferably lp, but that might also be the most complicated probably. Nonetheless it is a neat feature, albeit tThe inability to link to the file properly is the biggest setback (well you can, but it is not given as a suggestion when linking, so you actually must know the entire name).

Originally posted by @Gewerd-Strauss in https://github.com/meld-cp/obsidian-encrypt/issues/48#issuecomment-1318219240


I've tested this in the auto-purging testvault to ensure this was not some strange plugin interaction between one of the 97 plugins installed, and it wasn't. Below can be seen a screenshot showcasing two things:

  1. Encrypted files are still linkable (and I tested that the correct file is opened if a markdown file of the same name exists within the same location as the .encrypted-note).
  2. However, encrypted files are not given as suggestion when creating a blank link in another note. To be precise, you must type out the entire filename (including the file extension .encrypted) by hand to link to the encrypted note.

grafik

Hopefully this can be fixed because otherwhise this reduces viability quite a bit. Additionally, they (obviously) also do not show up on the graph.


I've given this issue a bit of thought, and the assumed-to-be-simplest solution I could come up with is to create a note of the same name alongside every encrypted note and automatically add the correct path to the encrypted note as file contents, generating a proxy of sorts.


I hope these details are sufficient. I'll be happy to test things if necessary.

Sincerely,
~Gw

meld-cp commented 1 year ago

Thanks @Gewerd-Strauss.

Hmm, apparently it should work already... https://github.com/obsidianmd/obsidian-api/issues/39

I'll need to look into it a bit further.

meld-cp commented 1 year ago

Just found this setting: image

Turn that on and it should work 👍

Gewerd-Strauss commented 1 year ago

I feel dumb for not remembering that was there :P

Thank you, this resolves the issue.