mProjectsCode / obsidian-media-db-plugin

A plugin that can query multiple APIs for movies, series, anime, games, music and wiki articles, and import them into your vault.
GNU General Public License v3.0
250 stars 30 forks source link

Automatically hyperlink enumerated variables in metadata variables #134

Open vaughanvandyk opened 7 months ago

vaughanvandyk commented 7 months ago

Is your feature request related to a problem? Please describe. It would be great if Media DB Plugin imported names (e.g. actors, directors, authors, production companies etc) as internal hyperlinks in the note properties. It wouldn't create those pages of course but when one clicks on the link, Obsidian would then create a page for that entity on demand as per usual.

Describe the solution you'd like Instead of importing the following Markdown for the "writer" property as currently occurs in v0.6.0:

writer: 
  - "Denis Villeneuve"
  - "Jon Spaihts"
  - "Frank Herbert"

The plugin would instead import like this:

writer:
  - "[[Denis Villeneuve]]"
  - "[[Jon Spaihts]]"
  - "[[Frank Herbert]]"

Additional context I have tried doing this in templates but not been able to successfully wrap ENUM or LIST with square brackets.

kelszo commented 4 months ago

See my answer in #137 for a possible fix.