注意事项
- 如果是想法或者评论,是不会同步到每天日记中的。取消
- 书名的格式如果是书名,关键词被书名给占用,比如:《规模》,防止书名污染了标题,采用:书名+bookid的命名方式
- 原始卡片::卡片集合:[[dataview_obsidian-weread]]
- github::微信读书obsidian同步
- 需求::同步微信读书划线到Obsidian
快捷键
快捷键::cmd+shift+R:同步最新的微信读书笔记
使用技巧
- 将同步插件通过Commander加到obsidian的文章标题栏,每天同步一次
- 书名修改后,更新不会修改书名,这个功能爽,涉及到所有书籍,都可以进行修改为自己熟悉的书名,并且不会被覆盖
- 在使用到的书单中,直接使用快捷键:cmd+shift+K 生成一个内部链接。自动进行连接。
与日记模板的联动
- 划线可以同步[[微信读书]]的划线笔记到日记,日记又引用到对应的读书笔记中
- 221007 默认模板有更新,这是最新的,采用了旧的模板,导致每日日记的内容引用错误
- 可以将每天的划线自动同步到每天日记中,放到日记模板中这段代码中间
<!-- start of weread -->
<!-- end of weread -->
[!INFO] 注意:最终放弃了同步到日记中
- 如果是想法或者评论,是不会同步到每天日记中的。
- 书名的格式如果是书名-作者,同步到每天是创建失败
默认模板
---
isbn: {{metaData.isbn}}
category: {{metaData.category}}
lastReadDate: {{metaData.lastReadDate}}
---
# 元数据
> [!abstract] {{metaData.title}}
> - ![ {{metaData.title}}|200]({{metaData.cover}})
> - 书名: {{metaData.title}}
> - 作者: {{metaData.author}}
> - 简介: {{metaData.intro}}
> - 出版时间 {{metaData.publishTime}}
> - ISBN: {{metaData.isbn}}
> - 分类: {{metaData.category}}
> - 出版社: {{metaData.publisher}}
# 高亮划线
{% for chapter in chapterHighlights %}
# {{chapter.chapterTitle}}
{% for highlight in chapter.highlights %}
{% if highlight.reviewContent %}{% else %}
- 📌 {{ highlight.markText |trim }} ^{{highlight.bookmarkId}}
- ⏱ {{highlight.createTime}}{% endif %} {% endfor %}{% endfor %}
# 读书笔记
{% for chapter in bookReview.chapterReviews %}{% if chapter.reviews or chapter.chapterReview %}
# {{chapter.chapterTitle}}
{% if chapter.chapterReviews %}{% for chapterReview in chapter.chapterReviews %}
## 章节评论 No.{{loop.index}}
- {{chapterReview.content}} ^{{chapterReview.reviewId}}
- ⏱ {{chapterReview.createTime}} {% endfor%}{%endif %}{% if chapter.reviews %}{%for review in chapter.reviews %}
## 划线评论
- 📌 {{review.abstract |trim }} ^{{review.reviewId}}
- 💭 {{review.content}}
- ⏱ {{review.createTime}}
{% endfor %} {%endif %} {% endif %} {% endfor %}
# 本书评论
{% if bookReview.bookReviews %}{% for bookReview in bookReview.bookReviews %}
# 书评 No.{{loop.index}}
{{bookReview.mdContent}} ^{{bookReview.reviewId}}
⏱ {{bookReview.createTime}}
{% endfor%}{% endif %}
230204 第二版
---
isbn: {{metaData.isbn}}
category: {{metaData.category}}
lastReadDate: {{metaData.lastReadDate}}
---
# 元数据
> [!abstract] {{metaData.title}}
> - ![ {{metaData.title}}|200]({{metaData.cover}})
> - 书名: {{metaData.title}}
> - 作者: {{metaData.author}}
> - 简介: {{metaData.intro}}
> - 出版时间 {{metaData.publishTime}}
> - ISBN: {{metaData.isbn}}
> - 分类: {{metaData.category}}
> - 出版社: {{metaData.publisher}}
# 高亮划线
{% for chapter in chapterHighlights %}
# {{chapter.chapterTitle}}
{% for highlight in chapter.highlights %}
{% if highlight.reviewContent %}{% else %}
- 📌 {{ highlight.markText |trim }} ^{{highlight.bookmarkId}}
- ⏱ {{highlight.createTime}}{% endif %} {% endfor %}{% endfor %}
# 读书笔记
{% for chapter in bookReview.chapterReviews %}{% if chapter.reviews or chapter.chapterReview %}
# {{chapter.chapterTitle}}
{% if chapter.chapterReviews %}{% for chapterReview in chapter.chapterReviews %}
## 章节评论 No.{{loop.index}}
- {{chapterReview.content}} ^{{chapterReview.reviewId}}
- ⏱ {{chapterReview.createTime}} {% endfor%}{%endif %}{% if chapter.reviews %}{%for review in chapter.reviews %}
## 划线评论
- 📌 {{review.abstract |trim }} ^{{review.reviewId}}
- 💭 {{review.content}}
- ⏱ {{review.createTime}}
{% endfor %} {%endif %} {% endif %} {% endfor %}
# 本书评论
{% if bookReview.bookReviews %}{% for bookReview in bookReview.bookReviews %}
# 书评 No.{{loop.index}}
{{bookReview.mdContent}} ^{{bookReview.reviewId}}
⏱ {{bookReview.createTime}}
{% endfor%}{% endif %}
230204 第三版:去掉了图钉和无序编号
---
isbn: {{metaData.isbn}}
category: {{metaData.category}}
lastReadDate: {{metaData.lastReadDate}}
---
# 元数据
> [!abstract] {{metaData.title}}
> - ![ {{metaData.title}}|200]({{metaData.cover}})
> - 书名: {{metaData.title}}
> - 作者: {{metaData.author}}
> - 简介: {{metaData.intro}}
> - 出版时间 {{metaData.publishTime}}
> - ISBN: {{metaData.isbn}}
> - 分类: {{metaData.category}}
> - 出版社: {{metaData.publisher}}
# 高亮划线
{% for chapter in chapterHighlights %}
# {{chapter.chapterTitle}}
{% for highlight in chapter.highlights %}
{% if highlight.reviewContent %}{% else %}
{{ highlight.markText |trim }} ^{{highlight.bookmarkId}}
- ⏱ {{highlight.createTime}}{% endif %} {% endfor %}{% endfor %}
# 读书笔记
{% for chapter in bookReview.chapterReviews %}{% if chapter.reviews or chapter.chapterReview %}
# {{chapter.chapterTitle}}
{% if chapter.chapterReviews %}{% for chapterReview in chapter.chapterReviews %}
## 章节评论 No.{{loop.index}}
{{chapterReview.content}} ^{{chapterReview.reviewId}}
- ⏱ {{chapterReview.createTime}} {% endfor%}{%endif %}{% if chapter.reviews %}{%for review in chapter.reviews %}
## 划线评论
{{review.abstract |trim }} ^{{review.reviewId}}
- 💭 {{review.content}}
- ⏱ {{review.createTime}}
{% endfor %} {%endif %} {% endif %} {% endfor %}
# 本书评论
{% if bookReview.bookReviews %}{% for bookReview in bookReview.bookReviews %}
# 书评 No.{{loop.index}}
{{bookReview.mdContent}} ^{{bookReview.reviewId}}
⏱ {{bookReview.createTime}}
{% endfor%}{% endif %}
230304 有评论后,无法同步到每天的日志中
---
isbn: {{metaData.isbn}}
category: {{metaData.category}}
lastReadDate: {{metaData.lastReadDate}}
---
# 元数据
> [!abstract] {{metaData.title}}
> - ![ {{metaData.title}}|200]({{metaData.cover}})
> - 书名: {{metaData.title}}
> - 作者: {{metaData.author}}
> - 简介: {{metaData.intro}}
> - 出版时间 {{metaData.publishTime}}
> - ISBN: {{metaData.isbn}}
> - 分类: {{metaData.category}}
> - 出版社: {{metaData.publisher}}
# 高亮划线
{% for chapter in chapterHighlights %}
# {{chapter.chapterTitle}}
{% for highlight in chapter.highlights %}
{% if highlight.reviewContent %}{% else %}
- 📌 {{ highlight.markText |trim }} ^{{highlight.bookmarkId}}
- ⏱ {{highlight.createTime}}{% endif %} {% endfor %}{% endfor %}
# 读书笔记
{% for chapter in bookReview.chapterReviews %}{% if chapter.reviews or chapter.chapterReview %}
# {{chapter.chapterTitle}}
{% if chapter.chapterReviews %}{% for chapterReview in chapter.chapterReviews %}
## 章节评论 No.{{loop.index}}
- {{chapterReview.content}} ^{{chapterReview.reviewId}}
- ⏱ {{chapterReview.createTime}} {% endfor%}{%endif %}{% if chapter.reviews %}{%for review in chapter.reviews %}
## 划线评论
- 📌 {{review.abstract |trim }} ^{{review.reviewId}}
- 💭 {{review.content}}
- ⏱ {{review.createTime}}
{% endfor %} {%endif %} {% endif %} {% endfor %}
# 本书评论
{% if bookReview.bookReviews %}{% for bookReview in bookReview.bookReviews %}
# 书评 No.{{loop.index}}
{{bookReview.mdContent}} ^{{bookReview.reviewId}}
⏱ {{bookReview.createTime}}
{% endfor%}{% endif %}
[[seyee]]的版本
---
isbn: {{metaData.isbn}}
category: {{metaData.category}}
lastReadDate: {{metaData.lastReadDate}}
---
## 元数据
![ {{metaData.title}}|200]({{metaData.cover}})
{% if bookReview.bookReviews %}{% for bookReview in bookReview.bookReviews %}{% if loop.first %}{% if bookReview.mdContent.length %}#本书评论{% endif %}{% endif %}
{% if bookReview.mdContent.length %}{{bookReview.createTime.slice(0, 10)}} {{bookReview.createTime.slice(10, 16)}}
{{bookReview.mdContent}}{% endif %}{% endfor%}{% endif %}
{% for chapter in bookReview.chapterReviews %}{% if chapter.reviews or chapter.chapterReview %}{% if chapter.chapterReviews %}{% for chapterReview in chapter.chapterReviews %}{% if chapterReview.content.length %}{{chapterReview.content}}
{{chapterReview.createTime.slice(0, 10)}} {{chapterReview.createTime.slice(10, 16)}}{% endif %}{% endfor%}{%endif %}{% if chapter.reviews %}{%for review in chapter.reviews %}{% if review.content.length %}{% endif %}{% endfor %}{%endif %}{% endif %}{% endfor %}
{% for chapter in chapterHighlights %}{% if loop.first %}# highlights{% endif %}
## {{chapter.chapterTitle}}
{% for highlight in chapter.highlights %}{% if highlight.reviewContent %}
{{ highlight.markText |trim }}
— {{highlight.createTime.slice(0, 10)}} {{highlight.createTime.slice(10, 16)}}
{% set regExp = r/\#/g %}{% if regExp.test(highlight.reviewContent) === false %}#notes{% endif %} {{highlight.reviewContent}}
{% else %}
{{ highlight.markText |trim }}
— {{highlight.createTime.slice(0, 10)}} {{highlight.createTime.slice(10, 16)}}
{% endif %} {% endfor %}{% endfor %}
[[seyee]]的微信读书模板
---
isbn: {{metaData.isbn}}
category: {{metaData.category}}
lastReadDate: {{metaData.lastReadDate}}
---
## 元数据
> [!abstract] {{metaData.title}}
> ![ {{metaData.title}}|200]({{metaData.cover}})
- 书名: {{metaData.title}}
- 作者: {{metaData.author}}
- 简介: {{metaData.intro}}
- 出版时间 {{metaData.publishTime}}
- ISBN: {{metaData.isbn}}
- 分类: {{metaData.category}}
- 出版社: {{metaData.publisher}}
{% if bookReview.bookReviews %}{% for bookReview in bookReview.bookReviews %}
{% if loop.first %}{% if bookReview.mdContent.length %}#本书评论{% endif %}{% endif %}
{% if bookReview.mdContent.length %}- {{bookReview.mdContent}} ^{{bookReview.reviewId}}
[[{{bookReview.createTime.slice(0, 10)}}]]{{bookReview.createTime.slice(10, 16)}}
{% endif %}{% endfor%}{% endif %}
{% for chapter in bookReview.chapterReviews %}{% if chapter.reviews or chapter.chapterReview %}{% if chapter.chapterReviews %}{% for chapterReview in chapter.chapterReviews %}- {{chapterReview.content}} ^{{chapterReview.reviewId}}
[[{{chapterReview.createTime.slice(0, 10)}}]]{{chapterReview.createTime.slice(10, 16)}}
{% endfor%}
{%endif %}{% if chapter.reviews %}{%for review in chapter.reviews %}
{% endfor %} {%endif %} {% endif %} {% endfor %}
{% for chapter in chapterHighlights %}{% if loop.first %}## 划线{% endif %}
## {{chapter.chapterTitle}}
{% for highlight in chapter.highlights %}{% if highlight.reviewContent %}
- {{ highlight.markText |trim }} — creaTED on [[{{highlight.createTime.slice(0, 10)}}]]{{highlight.createTime.slice(10, 16)}} ^{{highlight.chapterUid}}-{{highlight.range}}
{% set regExp = r/\#/g %}{% if regExp.test(highlight.reviewContent) === false %}#读书笔记{% endif %} {{highlight.reviewContent}}
{% else %}
- {{ highlight.markText |trim }} — created on [[{{highlight.createTime.slice(0, 10)}}]]{{highlight.createTime.slice(10, 16)}} ^{{highlight.chapterUid}}-{{highlight.range}}
{% endif %}
{% endfor %}{% endfor %}
8.1.2024-02-24 weread插件更新:支持标签转换为双链,支持文档名称为bookid
8.1.2024-02-24 修改模板:去掉出版社的双链
- 搜索:广东的时候,出版社的双链中包括蛮多的广东。就把出版社的双链去掉
8.1.2024-02-24 weread插件更新:支持标签转换为双链,支持文档名称为bookid
8.1.2024-02-24 修改模板:去掉出版社的双链
- 搜索:广东的时候,出版社的双链中包括蛮多的广东。就把出版社的双链去掉
推荐文章
- obsidian-插件-五彩:基于网页的文献笔记划线应用 (1.000)
- obsidian-插件-auto-Note-Mover:依规则将笔记自动搬移到指定文件夹 (1.000)
- obsidian-插件-thino:基于Obsidian的闪念笔记插件 (1.000)
- obsidian-插件-wordpress:obsidian笔记发布到wordpress (1.000)
- obsidian-插件-douban :同步豆瓣网电影到ob,建立影视元数据 (1.000)
- 滕王阁 (RANDOM - 0.500)