readwiseio / obsidian-readwise

Official Readwise plugin for Obsidian
GNU General Public License v3.0
239 stars 23 forks source link

[FR] Enable scripting in frontmatter customization #36

Open rbennett0000 opened 1 year ago

rbennett0000 commented 1 year ago

I would like to have different frontmatter metadata depending on the source type (book, article, podcast, etc.). The other customization options support scripting (e.g., {if category=="book"}), would like the same capability extended to frontmatter customization.

I could probably accomplish it using inline fields but then it will be inconsistent with my existing templates.

writtenfool commented 1 year ago

Can you provide a bit more context?

Given the YAML front matter section in the template (at the bottom), we should be able to do this with document notes or tags on the Readwise / Reader side before exporting into Obsidian.