obsidian-weread-plugin icon indicating copy to clipboard operation
obsidian-weread-plugin copied to clipboard

求教:请问有无办法能使高亮笔记和划线评论不分散在两个模块里,完全按照正文中的位置顺序排列在一起?

Open DanShui-Yu opened this issue 1 year ago • 13 comments

DanShui-Yu avatar Jul 01 '23 17:07 DanShui-Yu

+1,看了下接口,chapterUid应该可以作为章节索引,range是划线文字的索引范围,依靠这两个字段应该可以合并高亮和划线笔记,并按顺序排列

copofe avatar Jul 12 '23 01:07 copofe

+1,同求这个功能

calmwaves111 avatar Aug 22 '23 10:08 calmwaves111

+1,同求这个功能

现在就是支持的,改一下默认的模板就行,下面的模板可以试试

---
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 %}
> 📌 {{ highlight.markText |trim }} ^{{highlight.bookmarkId}}
- 💭 {{highlight.reviewContent}} - ⏱ {{highlight.createTime}} {% 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 %}
# 本书评论
{% if bookReview.bookReviews %}{% for bookReview in bookReview.bookReviews %}
## 书评 No.{{loop.index}} 
{{bookReview.mdContent}} ^{{bookReview.reviewId}}
⏱ {{bookReview.createTime}}
{% endfor%}{% endif %}

zhaohongxuan avatar Aug 22 '23 10:08 zhaohongxuan

+1,同求这个功能

现在就是支持的,改一下默认的模板就行,下面的模板可以试试

---
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 %}
> 📌 {{ highlight.markText |trim }} ^{{highlight.bookmarkId}}
- 💭 {{highlight.reviewContent}} - ⏱ {{highlight.createTime}} {% 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 %}
# 本书评论
{% if bookReview.bookReviews %}{% for bookReview in bookReview.bookReviews %}
## 书评 No.{{loop.index}} 
{{bookReview.mdContent}} ^{{bookReview.reviewId}}
⏱ {{bookReview.createTime}}
{% endfor%}{% endif %}

复制进去显示红框不能保存呢

DanShui-Yu avatar Aug 23 '23 12:08 DanShui-Yu

+1,同求这个功能

现在就是支持的,改一下默认的模板就行,下面的模板可以试试

---
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 %}
> 📌 {{ highlight.markText |trim }} ^{{highlight.bookmarkId}}
- 💭 {{highlight.reviewContent}} - ⏱ {{highlight.createTime}} {% 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 %}
# 本书评论
{% if bookReview.bookReviews %}{% for bookReview in bookReview.bookReviews %}
## 书评 No.{{loop.index}} 
{{bookReview.mdContent}} ^{{bookReview.reviewId}}
⏱ {{bookReview.createTime}}
{% endfor%}{% endif %}

这个复制进插件设置里面,是红框,应该有些问题

calmwaves111 avatar Sep 08 '23 11:09 calmwaves111

同样遇到红框问题~~~

1551255004 avatar Nov 18 '23 14:11 1551255004

这个需求挺多的,希望后边可以有吧。

1551255004 avatar Nov 19 '23 01:11 1551255004

应该有大佬发过模板可以用的

chiying2015 avatar Dec 12 '23 14:12 chiying2015

@chiying2015 求链接

DanShui-Yu avatar Dec 13 '23 16:12 DanShui-Yu

@chiying2015 求链接

https://github.com/zhaohongxuan/obsidian-weread-plugin/discussions/62#discussioncomment-7236718

DBAAG大佬的模板可以

chiying2015 avatar Dec 14 '23 01:12 chiying2015

@chiying2015 求链接

#62 (comment)

DBAAG大佬的模板可以

对不起,是DBAAJ

chiying2015 avatar Dec 14 '23 01:12 chiying2015

感谢各位大佬提供的思路,已解决,自答一下,有同样需求的旁友们可以去隔壁看看https://github.com/zhaohongxuan/obsidian-weread-plugin/discussions/62#discussioncomment-7877463

@zhaohongxuan 这个问题可以close了大神

DanShui-Yu avatar Dec 17 '23 15:12 DanShui-Yu

我做了一个模板,高亮、评论(包括没高亮划线的)按照章节顺序、原文顺序排列的模板 演示图

Sleepleeps avatar Jan 30 '24 13:01 Sleepleeps