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

Allow pipe within Literature note title template #237

Open crybot opened 1 year ago

crybot commented 1 year ago

Is your feature request related to a problem? Please describe. I'd like to insert a new literature note in my vault using the citeKey as filename. However, I would also like to use custom formatting for displaying the reference. Inserting the note, deleting it and then inserting it again as a Markdown citation is too cumbersome, so I would like to use something like this as title template: @{{citekey}} | {{authorString}} ({{year}}). Unfortunately the pipe | always gets replaced with an underscore, rendering my solution unsuitable.

Describe the solution you'd like I'd like to be able to escape unsafe characters in the title template, or apply the substitution only within template variables

Describe alternatives you've considered Another solution might be to provide the ability to automatically insert a reference note (without adding it the the edited file) before adding the markdown citation (i.e. a combination of the two available commands).