ryanjamurphy / DEVONlink-obsidian

Open notes indexed in DEVONthink in, well, DEVONthink
92 stars 3 forks source link

Added Automatic Link Type Switching #11

Closed abstraction closed 3 years ago

abstraction commented 3 years ago

This PR is in regards to #10.

I've added the Wikilink and DT link switching functionality. I think this solution will suffice for most users.

Working:

Caveat: The plugin won't work if one the top level directory has the same name as the vault; e.g., /Users/Stoopid/bla/blaa/vault-comes-next/Stoopid/file.md

ryanjamurphy commented 3 years ago

FYI, I had to do a bit of refactoring—your implementation of two items per linkLine variable worked for the intelligentLinks option, but not for the others (as the others had no second item to correspond with the way you implemented intelligent linking).

Otherwise this was great, and it's published as 2.2.0!