PKM-er / obsidian-zotlit

A third-party project that aims to facilitate the integration between Obsidian.md and Zotero, by providing a set of community plugins for both Obsidian and Zotero.
https://zotlit.aidenlx.top
MIT License
647 stars 29 forks source link

让拖拽到obsidian中的注释中带上跳转回zotero的回链 #304

Open wwjCMP opened 8 months ago

wwjCMP commented 8 months ago

让拖拽到obsidian中的注释中带上跳转回zotero的回链。现在只有原文的页码标记,使用起来不方便。

SimonJarry commented 5 months ago

如果是win端的话,建议使用quicker进行文本处理,建立起回链,这样会更加快捷。

guoweiy commented 5 months ago

可以在注释模板中自己添加回链,比如把下面这一行添加到zt-annot.eta中 [<%= it.docItem.title %>](<%= it.backlink %>)

举个例子,我自己用的模板zt-annot.eta为

[!note] <%= it.docItem.citekey %>

<%= it.imgEmbed %><%= it.text %>
> [<%= it.docItem.title %>](<%= it.backlink %>)

<% if (it.comment) { %>
---
<%= it.comment %>
<% } %>

生成的注释效果如图 image

配置自定义模板的方法,请参考https://zotlit.aidenlx.top/zh-CN/getting-started/basic-usage/template-config