sheldonxxd / obsidian_vault_template_for_researcher

This is an vault template for researchers using obsidian.
GNU General Public License v3.0
1.09k stars 177 forks source link

作者您好,感谢您创作出这么好的模板。今天第一次用,调试时发现已经用zotero生成Mdnotes并入库后,阅读清单显示未读文章为零。本人电脑小白一个,希望得到您的建议 #37

Open Tong-Jin opened 2 years ago

Tong-Jin commented 2 years ago

ISSUE TEMPLATE

In order to solve the problem more efficiently, please submit the issue according to this template.

Environment

  1. Vault template release version: v1.5
  2. Operating system: windows
  3. Python version: 3.7.10 (anaconda)
  4. Zotero version: 6.0
  5. Pandoc version: 2.12
  6. Obsidian version: 0.13

Bug descryption

Please descibe the problem in short.

Obsidian console information

Press Ctrl+Shift+I to open the obsidian console for more details. Please copy the error stack as complete as possible.

For example:

Uncaught (in promise) TypeError: Cannot read property 'frontmatter' of undefined
    at ViewModeByFrontmatterPlugin.eval (eval at <anonymous> (app.js:1), <anonymous>:66:76)
    at Generator.next (<anonymous>)
    at eval (eval at <anonymous> (app.js:1), <anonymous>:31:71)
    at new Promise (<anonymous>)
    at __awaiter (eval at <anonymous> (app.js:1), <anonymous>:27:12)
    at readViewModeFromFrontmatterAndToggle (eval at <anonymous> (app.js:1), <anonymous>:49:68)
    at a (app.js:1)
2VM200:166 Uncaught TypeError: Cannot read property 'length' of null
    at HTMLDocument.eval (eval at <anonymous> (app.js:1), <anonymous>:166:54)
4VM113:4170 Uncaught TypeError: Cannot read property 'functions' of undefined
    at Documentation.get_all_functions_documentation (eval at <anonymous> (app.js:1), <anonymous>:4170:45)
    at Autocomplete.getSuggestions (eval at <anonymous> (app.js:1), <anonymous>:4230:40)
    at Autocomplete.t.trigger (app.js:1)
    at e.trigger (app.js:1)
    at app.js:1
    at a (app.js:1)
VM113:82 Templater Error: Template parsing error, aborting. 
 tp.user.test is not a function
log_error @ VM113:82
LongJHui commented 2 years ago

我个人习惯读完必写comment

于是将代码改成如下,只要mdnote内没有写comment,就分类为未读。

TABLE file.cday AS Date
FROM "02-Reading/mdnotes"
WHERE comment < 0
SORT file.ctime desc
j89180192 commented 2 years ago

你到zotero的mdnote插件导出命名格式那里,必须是前面要加@的,不然识别不出来

Tong-Jin commented 2 years ago

谢谢作者,谢谢j89180192。问题已经找到,我把原来界面关闭后,再次打开,未读文章就显示出来了。虽然不明白是为什么,但有相同问题的同学不妨一试。