dsh-half-page 0.3.51 → 0.4.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +10 -2
  2. package/client.js +995 -672
  3. package/index.js +1143 -126
  4. package/package.json +7 -2
package/README.md CHANGED
@@ -44,10 +44,12 @@ dsh plugin add dsh-half-page
44
44
  ├── books/<id>.toc.json 章表:每章的字符偏移 + 字节偏移
45
45
  ├── 读后感.md 所有读后感,按 ## 书名 / ### 章名 分块
46
46
  ├── 作品/ 它自己写的东西
47
- └── state.json 读到哪了
47
+ └── state.json 读到哪了(books=书级最远;readers=每个读者各一份)
48
48
  ```
49
49
 
50
- 书和进度是这台机器共用的(一个家一个书房),不分谁在读;只有读后感会标署名。
50
+ 书是同一架,**进度按读者分开**:每条会话各有一份「读到哪」,互不踩;书上另记一个「全机读得最远」,面板里能看到别人读到哪。读后感仍然只有一个文件,靠署名分——不按会话拆文件。
51
+
52
+ 新会话第一次读同一本书,默认接着全机读得最远的地方往下(换窗口能接着读);想回到自己上次的位置就传 `from: "me"`,想跳章就传 `chapter`。
51
53
 
52
54
  `~/.dsh/reading.config.json` 是可选的,面板里改设置也会写到这里。常用的几个键:
53
55
 
@@ -106,3 +108,9 @@ dsh plugin add dsh-half-page
106
108
  ## License
107
109
 
108
110
  MIT
111
+
112
+ ### 读哪一本,由鱼自己决定
113
+
114
+ 面板顶部那个「当前这本」只是**你想看哪本**,它不会改变工具默认读哪本——只有你明确说「你去读某一本」,它才按你说的读。其余时候归读者自己的进度:
115
+
116
+ 这么定是因为反过来会把权力放错地方:面板是你看书的地方,不是给鱼派书的地方。