hans / obsidian-citation-plugin

Obsidian plugin which integrates your academic reference manager with the Obsidian editor. Search your references from within Obsidian and automatically create and reference literature notes for papers and books.
MIT License
1.12k stars 83 forks source link

use of (existing) templates as literaturenote #251

Open DaDirnbocher opened 1 year ago

DaDirnbocher commented 1 year ago

Describe the solution you'd like Instead of defining the structure of the literature note template in the settings ...

grafik

... it would be nice if someone could define the name of an (existing) template-note in Obsidian. The plugin should use this template then and replace the used variables.

drnikki commented 9 months ago

Adding on to this - the templating doesn't work with the latest version of obsidian's property feature. I'm commenting as a support to this bug and as a reminder to myself to see if I can fix this. :)

vtoborek commented 7 months ago

Adding on to this - the templating doesn't work with the latest version of obsidian's property feature. I'm commenting as a support to this bug and as a reminder to myself to see if I can fix this. :)

not sure whether this belongs here or into a new issue: for me, old notes were beautifully transformed with obsidian's property feature, but the templating doesn't work anymore for new notes. May be related to a hiccup where obsidian decided to remove all my plugins a couple of weeks ago, but I'd love to hear your opinions.

Old notes still look like this:

Bildschirmfoto 2024-04-26 um 15 39 51

New notes will look like this:

Bildschirmfoto 2024-04-26 um 15 40 00
orionpilot commented 7 months ago

@vtoborek the new note you show has a problem. The ":" in the title is an invalid character in properties/YAML. The properties don't display as expected because of this error. In your template, try using "{{title}}" instead to get around this (and add "" around the title in this note) The template fills in properly for me with Obsidian properties. If this happens in a new note where there isn't this error, that's another story.

vtoborek commented 6 months ago

@orionpilot oh my.. thank you, I didn't notice! that was an easy fix (: