frthjf / obsidian-zotero-sync-client

A Zotero Sync client for Obsidian
GNU Affero General Public License v3.0
24 stars 3 forks source link

Access the group library name? #11

Closed cinemakinoeye closed 10 months ago

cinemakinoeye commented 10 months ago

Is it possible to access the group library name from the Template?

It's great to have the collection name; I would also like to show the group library name.

If the variable is not exposed, please consider making it accessible to the Template.

frthjf commented 10 months ago

You can access it via $library which contains the following fields:

{
    type: 'group' | 'user';
    prefix: string;
    name: string;
    version?: number;
}

For example, n += 'My library: ' + $library.name will add the name to the template.