stefanopagliari / bibnotes

359 stars 30 forks source link

[Feature Request] Get Zotero ID as variable to use in template #59

Open Elaws opened 2 years ago

Elaws commented 2 years ago

Hello,

Is there any way to get Zotero IDs of a given item, as a value to use in template ?

e.g. : In this URI : zotero://open-pdf/library/items/DWDDHZU3, ID is DWDDHZU3.

It could be used as {{zoteroID[i]}} where i is the attachment number of a given Zotero item.

I would like to add my Zotero storage inside my vault : Zotero IDs would allow to get a cross-platform relative path to my PDFs.

Thanks !

stefanopagliari commented 2 years ago

@Elaws, I have not tested it but {{itemKey}} should work. Please let me know. Otherwise I will code this feature in the new round of updates (which unfortunately I had to suspend for a couple of weeks because of work commitments)

Elaws commented 2 years ago

Thanks for your reply !

I think {{itemKey}} refers to the ID of the Zotero item, not the ID of its attachments ? If there are several attachments, how could we access their different IDs ?

Also, I should add a bit more detail : The use case would be for each attachment to get its "attachmentKey/attachmentName" path so that we have a cross-platform link : Indeed, in case where we are syncing Zotero's storage folder on multiple platforms, such links could be used everywhere !