anpigon / obsidian-book-search-plugin

Obsidian plugin that automatically creates notes by searching for books

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Book Search info not auto-filling after Properties update

TinkerSquirrel opened this issue · comments

I have several Properties set up for my book notes that are supposed to autofill using the plugin's data. Since the most recent Properties update, that's not happening. This is what the frontmatter looks like in source mode:

cover: "{coverUrl}"
title: "{title}"
author: "{author}"
category: "{category}"

And this is what's outputted in the Properties field when I create a new book note:

image

Have I messed up the formatting, or is this a plugin issue?

It may be

cover: "{{coverUrl}}"
title: "{{title}}"
author: "{{author}}"
category: "{{category}}"

you can use double brackets instead of single brackets for generate properties.

Ah, it was the double brackets that did the trick. Weird that they didn't carry over from the old YAML when Properties was introduced. Thanks!

I'm having trouble adding new books:

CleanShot 2023-10-01 at 11 47 31

I've tried authors as both {authors} as well as {{authors}} and with speech marks around it.

All the template variables are singular, not plural. If you change it to {{author}} it should work.

All the variables are listed here if you need to double check any others: https://github.com/anpigon/obsidian-book-search-plugin#template-variables-definitions