dsh-workspaces-scroll 0.1.0 → 0.1.1
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.
- package/README.en.md +75 -0
- package/README.md +52 -91
- package/docs/RELEASE.md +9 -2
- package/package.json +3 -2
package/README.en.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# dsh-workspaces-scroll
|
|
2
|
+
|
|
3
|
+
[简体中文](README.md) · **English**
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/dsh-workspaces-scroll)
|
|
6
|
+
[](LICENSE)
|
|
7
|
+
|
|
8
|
+
DeepSeek Harness plugin. **Every expanded workspace in the left sidebar gets its own scrollable session window**: the workspace header stays pinned at the top, that workspace's history scrolls inside the window, each window carries its own scrollbar, and no scrollbar spans two workspaces. The shipped **Show more** control no longer appears. The row count is a setting, five rows by default.
|
|
9
|
+
|
|
10
|
+

|
|
11
|
+
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
Any of the three routes.
|
|
15
|
+
|
|
16
|
+
**① Ask the AI inside DSH** — send this to the model in a conversation:
|
|
17
|
+
|
|
18
|
+
> Install the `dsh-workspaces-scroll` plugin from npm, then restart the host.
|
|
19
|
+
|
|
20
|
+
**② In the app** — open **Plugins → Add plugin**, enter `dsh-workspaces-scroll`, click **Install**, and restart the host when it asks.
|
|
21
|
+
|
|
22
|
+
**③ From the command line** —
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
dsh plugin --profile <profile> add dsh-workspaces-scroll
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Desktop uses the bundled CLI and the `desktop` profile; on the web version use `web`. Verified on DSH Desktop 0.2.2-rc.5; the plugin claims nothing when a release renames the sidebar markers, so the sidebar falls back to its own short list instead of a window it cannot fill.
|
|
29
|
+
|
|
30
|
+
## Quick use
|
|
31
|
+
|
|
32
|
+
1. Expand any workspace in the left sidebar: it is now a fixed-height window with the workspace header left where it was.
|
|
33
|
+
2. Hover the workspace's session rows and scroll: only that window moves, and dragging its own scrollbar does the same. Once the window reaches either end, further scrolling moves the sidebar column as before.
|
|
34
|
+
3. To change the window height: **Settings → Built-in plugins → Workspace windows**, enter a row count.
|
|
35
|
+
|
|
36
|
+

|
|
37
|
+
|
|
38
|
+
## Settings
|
|
39
|
+
|
|
40
|
+
One setting: **Session rows per workspace window**, five by default.
|
|
41
|
+
|
|
42
|
+
- **In DSH**: **Settings → Built-in plugins → Workspace windows**. The field has the browser's own up/down steps: `3`–`99` sets the window height, and `-1` is the **original setting** — no window at all, the sidebar keeps its short list and its **Show more** button. A change applies to the open windows immediately.
|
|
43
|
+
- **In the profile patch**, as the row's `config`:
|
|
44
|
+
|
|
45
|
+
```yaml
|
|
46
|
+
- insert:
|
|
47
|
+
- id: workspaces-scroll
|
|
48
|
+
name: dsh-workspaces-scroll
|
|
49
|
+
config:
|
|
50
|
+
rows: 8
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
The window height is derived, not set directly: it is measured from the shipped list itself — the pinned header, one Session row's real height and the real gap between two rows — and multiplied by the configured count, so a host or theme that changes the row height keeps exactly that many rows in view instead of clipping. On the current host the rows are `32px` tall, `2px` apart, under a `32px` header, so five rows give `32 + 5×32 + 4×2 = 200px`. A field change rewrites the plugin configuration and resizes the windows at once; every later page load reads the stored value from the Host. A non-default value lives in the profile patch, a value equal to the default is stored as absent.
|
|
54
|
+
|
|
55
|
+
## Behavior
|
|
56
|
+
|
|
57
|
+
- Every expanded Workspace shows a window of the configured height plus its header. The window does not grow with the history.
|
|
58
|
+
- The workspace header stays pinned while its Session rows scroll beneath it, and the window has its own scrollbar: wheel over that Workspace's rows in either direction, or drag that window's bar. Once the window reaches an end, further scrolling moves the sidebar column as before.
|
|
59
|
+
- Workspaces stay separate, one below another; no scrollbar spans two of them. Folding, renaming, creating a session in, or reordering a Workspace behaves as before.
|
|
60
|
+
- **Show more** no longer appears; every Session of an expanded Workspace is already in its window.
|
|
61
|
+
- Search keeps its own full-height result panel; the windows apply to the browsing list only.
|
|
62
|
+
|
|
63
|
+
## Known limitations
|
|
64
|
+
|
|
65
|
+
- Every Session of every expanded Workspace is rendered inside its window, so a Workspace with a very long history costs more rows and more fill frames than the shipped short list, even though only the configured rows are visible. The fill runs one batch per animation frame.
|
|
66
|
+
- The window does not scroll the active Session into view on its own; if that Session sits below the visible rows, open the window and scroll to it, the same as the shipped sidebar.
|
|
67
|
+
- Dragging a Workspace to reorder it still works, but the insertion line drawn at the section's top or bottom edge is clipped by the window's own overflow.
|
|
68
|
+
- Workspace Tree grouping nests child Workspaces inside the parent's section, so a child that is itself capped scrolls inside the parent's window. Sibling grouping, the default, has one window per Workspace.
|
|
69
|
+
- The one-list view (`Group by: In one list`) has no Workspace sections, so it keeps its own layout without per-workspace windows.
|
|
70
|
+
- The plugin relies on the shipped browser's markers: the list seat (`data-sidebar-list-area`), the `data-row-key` values of the Workspace, Session and reveal rows, and `aria-expanded` on the reveal control. It claims the list only while that control is recognizable, and it drops the claim again if the control stops revealing rows, so a DSH release that renames or repurposes them leaves the sidebar with its own short list instead of a window it cannot fill.
|
|
71
|
+
- It writes one style rule and one marker attribute; no markup, no storage, no application state.
|
|
72
|
+
|
|
73
|
+
## Turning it off
|
|
74
|
+
|
|
75
|
+
Disabling the bundle removes its style, its wheel listener, its observers, its animation frame and its marker; the sidebar returns to the short list with the **Show more** control.
|
package/README.md
CHANGED
|
@@ -1,52 +1,46 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "Client plugin that gives every workspace its own scrolling session window with its own scrollbar, replacing the Show more control; the row count is a setting."
|
|
3
|
-
kind: "package-reference"
|
|
4
|
-
---
|
|
5
|
-
|
|
6
1
|
# dsh-workspaces-scroll
|
|
7
2
|
|
|
8
|
-
|
|
3
|
+
**简体中文** · [English](README.en.md)
|
|
9
4
|
|
|
10
|
-
|
|
11
|
-
dsh
|
|
12
|
-
|
|
5
|
+
[](https://www.npmjs.com/package/dsh-workspaces-scroll)
|
|
6
|
+
[](LICENSE)
|
|
7
|
+
|
|
8
|
+
DeepSeek Harness 插件。**左侧栏每个展开的工作区各自拥有一个可滚动的会话窗口**:标题固定在上方,这个工作区的历史在窗口里滚动,每个窗口带自己的滚动条,工作区之间不共享滚动条;原来的「展开其余 N 个会话」不再出现。窗口行数是可配置的,默认 5 行。
|
|
9
|
+
|
|
10
|
+

|
|
11
|
+
|
|
12
|
+
## 快速安装
|
|
13
|
+
|
|
14
|
+
三种方式,任选一种。
|
|
15
|
+
|
|
16
|
+
**① 让 DSH 里的 AI 帮你装** —— 在会话里把这句话发给模型:
|
|
13
17
|
|
|
14
|
-
|
|
15
|
-
cloned checkout: DSH links a local directory instead of copying it. The registry
|
|
16
|
-
copy also appears in the plugin market inside DSH. Restart the host when it asks.
|
|
18
|
+
> 帮我安装 npm 上的 `dsh-workspaces-scroll` 插件,装好后重启宿主。
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
renames the markers it drives.
|
|
20
|
+
**② 图形界面** —— 打开 **Plugins → Add plugin**,输入 `dsh-workspaces-scroll`,点 **Install**,按提示重启宿主。
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
**③ 命令行** ——
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
Workspace: each expanded Workspace stays the configured number of Session rows
|
|
27
|
-
tall, keeps its header pinned at the top, and scrolls its whole history inside
|
|
28
|
-
itself with its own scrollbar.
|
|
24
|
+
```sh
|
|
25
|
+
dsh plugin --profile <profile> add dsh-workspaces-scroll
|
|
26
|
+
```
|
|
29
27
|
|
|
30
|
-
|
|
28
|
+
桌面版用应用自带的 CLI 和 `desktop` 配置档;Web 版把 `<profile>` 换成 `web`。在 DSH Desktop 0.2.2-rc.5 上验证过;侧栏标记改名后插件会自己退场,不会留下填不满的窗口。
|
|
31
29
|
|
|
32
|
-
|
|
33
|
-
state of its own: it reads one Host setting, drives the shipped control to render
|
|
34
|
-
the remaining rows, hides that control, and caps each Workspace's group section
|
|
35
|
-
while keeping its rows scrollable. Its only other surface is one tab in Settings.
|
|
30
|
+
## 快速使用
|
|
36
31
|
|
|
37
|
-
|
|
32
|
+
1. 在左侧栏展开任意工作区:它现在是一个固定高度的窗口,工作区标题留在原处。
|
|
33
|
+
2. 把鼠标悬停在这个工作区的会话行上滚动滚轮,只有这个窗口在动;拖它自己的滚动条也一样。窗口滚到顶或到底之后,继续滚才会带动整个侧栏。
|
|
34
|
+
3. 想改窗口多高:**设置 → 内置插件 → 工作区窗口**,填一个行数。
|
|
38
35
|
|
|
39
|
-
|
|
36
|
+

|
|
40
37
|
|
|
41
|
-
|
|
42
|
-
number field with the browser's own up/down steps: `3`–`99` sets the window
|
|
43
|
-
height, and `-1` is the **original setting** — no window at all, the sidebar
|
|
44
|
-
keeps its short list and its **Show more** button. A change applies to the open
|
|
45
|
-
windows immediately.
|
|
38
|
+
## 设置
|
|
46
39
|
|
|
47
|
-
|
|
40
|
+
只有一个设置项:**每个工作区的会话行数**,默认 5 行。
|
|
48
41
|
|
|
49
|
-
-
|
|
42
|
+
- **在 DSH 里**:**设置 → 内置插件 → 工作区窗口**。输入框带浏览器自带的上下步进:填 `3`–`99` 设定窗口高度,填 `-1` 是**原版设置**——不生成窗口,侧栏保持原来的短列表和「展开其余」按钮。改动对已经打开的窗口立即生效。
|
|
43
|
+
- **在配置档的 patch 里**:写成插件行的 `config`:
|
|
50
44
|
|
|
51
45
|
```yaml
|
|
52
46
|
- insert:
|
|
@@ -56,59 +50,26 @@ One setting, **Session rows per workspace window**, five by default:
|
|
|
56
50
|
rows: 8
|
|
57
51
|
```
|
|
58
52
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
##
|
|
70
|
-
|
|
71
|
-
-
|
|
72
|
-
|
|
73
|
-
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
- Search keeps its own full-height result panel; the windows apply to the
|
|
83
|
-
browsing list only.
|
|
84
|
-
|
|
85
|
-
## Known limitations
|
|
86
|
-
|
|
87
|
-
- Every Session of every expanded Workspace is rendered inside its window, so a
|
|
88
|
-
Workspace with a very long history costs more rows and more fill frames than the
|
|
89
|
-
shipped short list, even though only the configured rows are visible. The fill
|
|
90
|
-
runs one batch per animation frame.
|
|
91
|
-
- The window does not scroll the active Session into view on its own; if that
|
|
92
|
-
Session sits below the visible rows, open the window and scroll to it, the same
|
|
93
|
-
as the shipped sidebar.
|
|
94
|
-
- Dragging a Workspace to reorder it still works, but the insertion line drawn at
|
|
95
|
-
the section's top or bottom edge is clipped by the window's own overflow.
|
|
96
|
-
- Workspace Tree grouping nests child Workspaces inside the parent's section, so a
|
|
97
|
-
child that is itself capped scrolls inside the parent's window. Sibling
|
|
98
|
-
grouping, the default, has one window per Workspace.
|
|
99
|
-
- The one-list view (`Group by: In one list`) has no Workspace sections, so it
|
|
100
|
-
keeps its own layout without per-workspace windows.
|
|
101
|
-
- The plugin relies on the shipped browser's markers: the list seat
|
|
102
|
-
(`data-sidebar-list-area`), the `data-row-key` values of the Workspace, Session
|
|
103
|
-
and reveal rows, and `aria-expanded` on the reveal control. It claims the list
|
|
104
|
-
only while that control is recognizable, and it drops the claim again if the
|
|
105
|
-
control stops revealing rows, so a DSH release that renames or repurposes them
|
|
106
|
-
leaves the sidebar with its own short list instead of a window it cannot fill.
|
|
107
|
-
- It writes one style rule and one marker attribute; no markup, no storage, no
|
|
108
|
-
application state.
|
|
109
|
-
|
|
110
|
-
## Turning it off
|
|
111
|
-
|
|
112
|
-
Disabling the bundle removes its style, its wheel listener, its observers, its
|
|
113
|
-
animation frame and its marker; the sidebar returns to the short list with the
|
|
114
|
-
**Show more** control.
|
|
53
|
+
窗口高度是量出来的,不是写死的:从侧栏列表本身量出固定的标题高度、一行会话的真实高度和两行之间的真实间距,再乘以配置的行数,所以换主题或宿主改了行高时,仍然恰好放下这么多行,而不是被裁掉。当前宿主上会话行 `32px`、行距 `2px`、标题 `32px`,5 行即 `32 + 5×32 + 4×2 = 200px`。改一次设置会重写插件配置并立刻调整窗口大小;之后每次打开页面都从宿主读回存下的值。非默认值写在配置档的 patch 里,等于默认值时存成“未设置”。
|
|
54
|
+
|
|
55
|
+
## 行为
|
|
56
|
+
|
|
57
|
+
- 每个展开的工作区显示一个配置高度的窗口,加上它自己的标题;窗口不随历史变长。
|
|
58
|
+
- 标题固定,下面的会话行滚动:滚轮在任意方向都只作用于这个窗口,也可以拖这一条窗口的滑条。窗口到达两端后,继续滚动会像原来一样带动侧栏列。
|
|
59
|
+
- 工作区彼此独立、上下排列,没有一条滚动条横跨两个工作区。折叠、重命名、在其中新建会话、拖动排序都和原来一样。
|
|
60
|
+
- 「展开其余」不再出现:展开的工作区里每个会话都已经在窗口内。
|
|
61
|
+
- 搜索保持自己的整页结果面板;窗口只作用于浏览列表。
|
|
62
|
+
|
|
63
|
+
## 已知限制
|
|
64
|
+
|
|
65
|
+
- 展开的工作区里的每个会话都渲染进窗口,历史很长的工作区比原来的短列表多花一些渲染开销,虽然可见的只有配置的那几行。填充按动画帧一批批进行。
|
|
66
|
+
- 窗口不会自动把当前会话滚进视野;当前会话在可见行以下时,打开窗口自己滚过去,和原来的侧栏一样。
|
|
67
|
+
- 拖动工作区排序仍然可用,但画在分区上下边缘的插入线会被窗口自己的 overflow 裁掉。
|
|
68
|
+
- 按「工作区树」分组时,子工作区嵌在父工作区的分区里,被限制高度的子工作区会在父窗口内部滚动;默认的“同级”分组是一个工作区一个窗口。
|
|
69
|
+
- 单列表视图(`Group by: In one list`)没有工作区分区,不生成分工作区窗口。
|
|
70
|
+
- 插件依赖侧栏内置的标记:列表容器(`data-sidebar-list-area`)、工作区 / 会话 / 揭示行的 `data-row-key`、揭示控件上的 `aria-expanded`。只有认出那个揭示控件才会接管,控件不再能揭示新行时也会放手,所以 DSH 升级后标记改名的话,侧栏会退回自己的短列表,而不是留下一个填不满的窗口。
|
|
71
|
+
- 只写一条样式规则和一个标记属性:不加 DOM、不存数据、没有应用状态。
|
|
72
|
+
|
|
73
|
+
## 关闭
|
|
74
|
+
|
|
75
|
+
禁用这个 bundle 会移除它的样式、滚轮监听、观察器、动画帧和标记,侧栏回到原来的短列表和「展开其余」按钮。
|
package/docs/RELEASE.md
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
# Release checklist
|
|
2
2
|
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
- README 改成中文,开篇就是「让 DSH 里的 AI 装 / 图形界面 / 命令行」三条快速安装和一段快速使用;npm 上的描述同步成中文。
|
|
6
|
+
- 新增 `README.en.md` 英文版,两个文件顶部互相切换;`files` 已把它一起打包。
|
|
7
|
+
- 去掉 README 顶部的 front matter:npm 会把它当正文显示在包页顶部。
|
|
8
|
+
- 只改文档和描述,插件代码、配置项与行为与 0.1.0 相同。
|
|
9
|
+
|
|
3
10
|
## Package
|
|
4
11
|
|
|
5
|
-
- `dsh-workspaces-scroll@0.1.
|
|
12
|
+
- `dsh-workspaces-scroll@0.1.1`, MIT, bundle patch + web client half, one Host
|
|
6
13
|
setting (`rows`: 5 by default, 3–99, or -1 for the original sidebar) and its own
|
|
7
14
|
settings tab.
|
|
8
15
|
- Contents verified with `npm pack --dry-run`: 15 files, about 1.6 MB packed; the
|
|
@@ -66,7 +73,7 @@ and a restart does the same.
|
|
|
66
73
|
|
|
67
74
|
- The manifest carries `repository`, `homepage` and `bugs` for
|
|
68
75
|
`https://github.com/Jimmm-Yuuu/dsh-workspaces-scroll`, and the repository is
|
|
69
|
-
pushed
|
|
76
|
+
pushed to that remote.
|
|
70
77
|
- `npm publish` from this directory (unscoped name, so `--access public` is not
|
|
71
78
|
needed).
|
|
72
79
|
- Open one entry in the `awesome-dsh-plugin` registry (PR against that repo; it
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-workspaces-scroll",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "让左侧栏每个展开的工作区拥有各自可滚动的会话窗口,替代「展开其余」;窗口行数是设置项,默认 5 行。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Jimmm-Yuuu",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"docs",
|
|
36
36
|
"icon.svg",
|
|
37
37
|
"README.md",
|
|
38
|
+
"README.en.md",
|
|
38
39
|
"LICENSE"
|
|
39
40
|
],
|
|
40
41
|
"dependencies": {
|