Closed awkar closed 1 year ago
Hi @awkar. Adding {{select}} to the template returns that value. I'm closing this but please reopen it and tag me if it does not work on your end
Hi @stefanopagliari. I'm so sorry that I find your response today. I add {{select}} to the template and find that it returns the same value as {{localLibraryLink}}, which is the URL for the item in Zotero (zotero://select/library/items/XLH7KWT6), not the PDF file's (zotero://select/library/items/SKMPVHUV). In other word, when clicking the value returning from {{select}} or {{localLibraryLink}}, I cannot open the PDF in Zotero directly.
I have another question. I add these code in the template:
create_time: <% tp.date.now("YYYY-MM-DD") %>
update_time: <% tp.date.now("YYYY-MM-DD") %>
importance: #normal
Therefore, I can get the create time and update time directly.
create_time: 2023-01-10
update_time: 2023-01-10
importance: #normal
Then, I read the paper and change the importance, #good.
importance: #good
When I reload the same item into obsidian, I will get
create_time: <% tp.date.now("YYYY-MM-DD") %>
update_time: <% tp.date.now("YYYY-MM-DD") %>
create_time: 2023-01-10
update_time: 2023-01-10
importance: #normal
importance: #good
How can I set that only changing the update time automatically when reload, but not changing the create time and the importance label. In my imagination, I will get below in obsidian when I reload the item.
create_time: 2023-01-10
update_time: 2023-01-13
importance: #good
I think it will be very difficult and I should try to improve my template, which is not this plugin's problem. Can you give me some advice?
Hi @stefanopagliari. I'm so sorry that I find your response today. I add {{select}} to the template and find that it returns the same value as {{localLibraryLink}}, which is the URL for the item in Zotero (zotero://select/library/items/XLH7KWT6), not the PDF file's (zotero://select/library/items/SKMPVHUV). In other word, when clicking the value returning from {{select}} or {{localLibraryLink}}, I cannot open the PDF in Zotero directly.
@awkar I have added in the new version (0.9.217) a new available filed in the template called filePath. This links to the specific attachment (or multiple attachments) within zotero. This is different from {{file}} that opens the attachment in an external reader. Could you please test it and let me know if this works?
I have another question. I add these code in the template:
create_time: <% tp.date.now("YYYY-MM-DD") %> update_time: <% tp.date.now("YYYY-MM-DD") %> importance: #normal
Therefore, I can get the create time and update time directly.
create_time: 2023-01-10 update_time: 2023-01-10 importance: #normal
Then, I read the paper and change the importance, #good.
importance: #good
When I reload the same item into obsidian, I will get
create_time: <% tp.date.now("YYYY-MM-DD") %> update_time: <% tp.date.now("YYYY-MM-DD") %> create_time: 2023-01-10 update_time: 2023-01-10 importance: #normal importance: #good
How can I set that only changing the update time automatically when reload, but not changing the create time and the importance label. In my imagination, I will get below in obsidian when I reload the item.
create_time: 2023-01-10 update_time: 2023-01-13 importance: #good
I think it will be very difficult and I should try to improve my template, which is not this plugin's problem. Can you give me some advice?
@awkar do you have the setting activated that prevents the over-write of manual changes to the notes? I imagine that the plugin interprets the changes made by templates to the date field as a manual input and it does not overwrite them. If that is the case you need to either turn down that option, or define an area that where changes to the note should be overwritten (it is possible to set text delimiters)
Hi @stefanopagliari. I'm so sorry that I find your response today. I add {{select}} to the template and find that it returns the same value as {{localLibraryLink}}, which is the URL for the item in Zotero (zotero://select/library/items/XLH7KWT6), not the PDF file's (zotero://select/library/items/SKMPVHUV). In other word, when clicking the value returning from {{select}} or {{localLibraryLink}}, I cannot open the PDF in Zotero directly.
@awkar I have added in the new version (0.9.217) a new available filed in the template called filePath. This links to the specific attachment (or multiple attachments) within zotero. This is different from {{file}} that opens the attachment in an external reader. Could you please test it and let me know if this works?
I'm very excited to find that the field {{filePath}} works. It can link to the attachments in the Zotero even there are multiple attachments. But I have one more requirement. The field {{filePath}} returns "zotero://select/library/items/xxxxx" which can match many types of file formats. And when clicking the link in Obsidian, it can open the Zotero and jump to the certain item. In my notes, most of the file are in PDF format. Therefore, would you have the plan to add one more field that returns "zotero://open-pdf/library/items/xxxxxx"? In this way, I can directly open the PDF in Zotero when I click the link in Obsidian. Anyway, the field {{filePath}} is really useful. Thank you again,
I have another question. I add these code in the template:
create_time: <% tp.date.now("YYYY-MM-DD") %> update_time: <% tp.date.now("YYYY-MM-DD") %> importance: #normal
Therefore, I can get the create time and update time directly.
create_time: 2023-01-10 update_time: 2023-01-10 importance: #normal
Then, I read the paper and change the importance, #good.
importance: #good
When I reload the same item into obsidian, I will get
create_time: <% tp.date.now("YYYY-MM-DD") %> update_time: <% tp.date.now("YYYY-MM-DD") %> create_time: 2023-01-10 update_time: 2023-01-10 importance: #normal importance: #good
How can I set that only changing the update time automatically when reload, but not changing the create time and the importance label. In my imagination, I will get below in obsidian when I reload the item.
create_time: 2023-01-10 update_time: 2023-01-13 importance: #good
I think it will be very difficult and I should try to improve my template, which is not this plugin's problem. Can you give me some advice?
@awkar do you have the setting activated that prevents the over-write of manual changes to the notes? I imagine that the plugin interprets the changes made by templates to the date field as a manual input and it does not overwrite them. If that is the case you need to either turn down that option, or define an area that where changes to the note should be overwritten (it is possible to set text delimiters)
Thank you for your reply. I am so sorry to find that there are so many functions I don't know in the plugin. You mentioned "define an area that where changes to the note should be overwritten (it is possible to set text delimiters)". I think it is what I want. But I don't know how to operate. Thus, I will take some time to learn how to use this plugin. If I have some troubles to achieve my needs, I would like to seek your help. Thank you very much.
Hi @stefanopagliari. I'm so sorry that I find your response today. I add {{select}} to the template and find that it returns the same value as {{localLibraryLink}}, which is the URL for the item in Zotero (zotero://select/library/items/XLH7KWT6), not the PDF file's (zotero://select/library/items/SKMPVHUV). In other word, when clicking the value returning from {{select}} or {{localLibraryLink}}, I cannot open the PDF in Zotero directly.
@awkar I have added in the new version (0.9.217) a new available filed in the template called filePath. This links to the specific attachment (or multiple attachments) within zotero. This is different from {{file}} that opens the attachment in an external reader. Could you please test it and let me know if this works?
I'm very excited to find that the field {{filePath}} works. It can link to the attachments in the Zotero even there are multiple attachments. But I have one more requirement. The field {{filePath}} returns "zotero://select/library/items/xxxxx" which can match many types of file formats. And when clicking the link in Obsidian, it can open the Zotero and jump to the certain item. In my notes, most of the file are in PDF format. Therefore, would you have the plan to add one more field that returns "zotero://open-pdf/library/items/xxxxxx"? In this way, I can directly open the PDF in Zotero when I click the link in Obsidian. Anyway, the field {{filePath}} is really useful. Thank you again,
@awkar In 0.9.219 I have added the placeholder {{zoteroReaderLink}} that directly opens the file in the Zotero PDF reader
I have a question to get the url of the pdf in the zotero item using the md template. To get the path to the attachment, I use the {{file}}, and I can use Adobe to read it. But I also want to read it in Zotero. Thus, I want to get zotero://open-pdf/library/items/"attachment's itemkey". On the other hand, I want to get the "select" of the attachment. I find that {{attachments}} is available, but I can't get the values in it.
How do I get that value? Look forward to your reply. Thank you!