Files
StudyDiary/.obsidian/plugins/simpread/data.json
CrazyJasonwell fb40c9b109 add all
2025-10-25 20:35:10 +08:00

1 line
3.8 KiB
JSON
Executable File

{"config":"simpread_config.json","host":"localhost","port":"7027","count":"20","override":true,"folder":"70-SimpRead/Inbox","path":"Users/chengang/SimpRead","annote":false,"frequency":-1,"tag_prefix":"[[","tag_suffix":"]] ","format":"{\"headingStyle\":\"atx\",\"hr\":\"---\",\"bulletListMarker\":\"-\"}","ext_uri":"","title":"{{id}}-{{title}}{{mode}}","template":"---\ntitle: \"{{title}}\"\nalias: \n<% if ( unread.note && unread.title != unread.note ) { %> - \"{{note}}\"\n<% } %> - \"{{title}}\"\ncreated-date: {{create|yyyy-mm-dd'T'HH:MM:sso}}\ntype: Simpread\n<% if (unread.img) { %>banner: \"<%- unread.img %> \"\nbanner_icon: 🔖\n<% } -%>\ntag: {{ |tag| | }}\nidx: {{idx}}\n---\n\n# {{title}}\n<%\nlet ifURI = \"http://localhost:7026/unread/\"+unread.idx\n%>\n> [!example]- [🧷内部链接](<<%= ifURI %>>) [🌐外部链接](<<%= unread.url %>>) \n> URI:: [🧷](<<%= ifURI %>>) [🌐](<<%= unread.url %>>) \n> intURI:: [🧷内部链接](<{{int_uri}}>)\n\n%%\n> [!example]+ **Comments** \n> ```dataview\n> TABLE \n> WITHOUT ID\n> link(Source, dateformat(date(Source), \"yyyy-MM-dd\")) as Date___, \n> regexreplace(rows.Comments,\"^@@\\[\\[.+?\\]\\]\\s\",\"\") as \"Comments\"\n> FROM \"journals\"\n> WHERE contains(cmnt, this.file.name)\n> FLATTEN cmnt as Comments\n> WHERE contains(Comments, this.file.name)\n> GROUP BY file.link as Source\n> SORT rows.file.day desc\n> ```\n> **Description**:: {{desc}}\n%%\n\n> [!md] Metadata \n> **标题**:: [{{title}}]({{url}}) \n> **日期**:: [[{{create|yyyy-mm-dd}}]] \n<% if ( unread.annotations && unread.annotations.length > 0 ) { %>\n## Annotations\n\n{{annotations}}\n<% } -%>\n<% if ( unread.tags && unread.tags.includes('Highlights') ) { %>\n![[<%% tp.file.title %>_mentions#Highlight Mentions]]\n<% } -%>\n<% if ( unread.refs ) { %>\n## Reference \n{{-|refs}} \n<% } %> ","annotation":"<%\nlet colors = [ '#B4D9FB', '#ffeb3b', '#a2e9f2', '#a1e0ff', '#a8ea68', '#ffb7da' ],\n color = colors[ annote.color ];\nlet chls = [ 'srhl1', 'srhl2', 'srhl3', 'srhl4', 'srhl5', 'srhl6' ],\n chl = chls[ annote.color ];\nlet iframeURI = \"http://localhost:7026/unread/\"+unread.idx+\"#id=\"+annote.id\nlet intURL = \"http://localhost:7026/reading/\"+unread.idx+\"#id=\"+annote.id\nif (unread.note && unread.title != unread.note) {\nvar filetitle = unread.note;\n}\nelse {\nvar filetitle = unread.title;\n}\nlet wikilinks = \"[[SR\" + unread.idx + \"@\" + filetitle + \"|📄]]\";\n-%>\n<% if (annote.note.startsWith(\"######\")) { %>\n<% \nlet note = annote.note.slice(7);\n-%>\n###### <% if (note) { %><%- note %><% } else { %>{{an_text}}<% } %>\n<% } else if (annote.note.startsWith(\"######\")) { %>\n<% \nlet note = annote.note.slice(6);\n-%>\n###### <% if (note) { %><%- note %><% } else { %>{{an_text}}<% } %>\n<% } else if (annote.note.startsWith(\"####\")) { %>\n<% \nlet note = annote.note.slice(5);\n-%>\n#### <% if (note) { %><%- note %><% } else { %>{{an_text}}<% } %>\n<% } else if (annote.note.startsWith(\"###\")) { %>\n<% \nlet note = annote.note.slice(4);\n-%>\n### <% if (note) { %><%- note %><% } else { %>{{an_text}}<% } %>\n<% } else { %>\n> [!<%= chl %>] <%- wikilinks %> <mark style=\"background-color: <%= color %>\">Highlights</mark> [🧷](<<%= iframeURI %>>) [🌐](<<%= intURL %>>) {{#|an_tag| }} \n{{{html_format|>|{{an_html}}}}}\n<% if (annote.refs) { -%>\n{{> - 🔗|an_refs}}\n<% } -%>\n<% if (annote.note) { -%>\n<% if (annote.note.startsWith(\"todo:\") == false && annote.note.startsWith(\"done:\") == false) { -%>\n> \n> - 📝{{an_note}}\n> ^sran-{{an_id}}\n<% } else { -%>\n<% \nlet note = annote.note.slice(6);\nif (annote.note.startsWith(\"todo:\")) {\n var taskStatus = \" \"; }\n else {\n var taskStatus = \"x\";\n}\n-%>\n> ^sran-{{an_id}}\n\n- [<%= taskStatus %>] <%- note %> #web ^srtask-{{an_id}}\n<% } -%>\n<% } else { -%>\n> ^sran-{{an_id}}\n<% } -%>\n<% } -%> "}