Skip to content
dsh.fish
Bundle

dsh-chat-tools

DSH Web client plugin: adjustable chat column width and alignment, a numbered question history with keyboard navigation and auto-load of older questions, plus markdown outline rails on both the conversation and the file preview.

Source
Free-corner
stars
4 stars
License
MIT
Updated
Updated 6 days ago

Readme

# dsh-chat-tools

DSH(DeepSeek Harness)Web 客户端插件:对话列宽度/位置调节、带序号与快捷键的提问历史、以及对话区与文件预览区的 Markdown 大纲目录。

## 功能

### 界面调节(右上角)

- **宽度**:滑块按百分比调节对话内容列宽度(0% = 默认宽度,100% = 占满内容区且避开左侧大纲区)。
- **位置**:内容居中或靠左显示(靠左时自动避开左侧大纲区,不会相互覆盖)。

### 提问历史(右上角「提问历史」下拉菜单)

- 每个提问带**序号**,按对话顺序排列(最新在底部)。
- 打开菜单自动定位到**最新提问**。
- 顶部 **↑ 上一个 / ↓ 下一个** 按钮,或快捷键 **Ctrl+↑ / Ctrl+↓** 在提问间跳转。
- 点击任意条目跳转到对话中的对应位置。
- 左边缘拖拽调宽度、底边缘拖拽调高度(设置持久化)。
- **历史缓存**:提问记录按会话持久化保存,服务重启后仍在;早期内容未加载时显示为「未加载」,点击会自动分页加载更早内容并跳转到对应位置(上限保护,不会拖垮浏览器)。

### 大纲目录(内容区左边缘)

- 对当前回答的 Markdown 标题(`#`~`######`)以**小横条**展示结构:横条长度随标题层级递减。
- 鼠标移入横条区域弹出完整大纲,点击条目跳转到对应标题。
- 在 **better-sidebar 等文件预览**(Markdown 渲染)中,大纲横条显示在预览区**右边缘**,功能相同。

## 安装

### 从市场(待收录)

安装插件市场后,在 **Settings → Plugin Market** 中搜索 `dsh-chat-tools`,一键安装。

### 手动安装

```sh
dsh plugin --profile web add dsh-chat-tools
```

或(本地开发):

```sh
cd ~/.dsh/profiles/web
pnpm add "file:/path/to/dsh-chat-tools"
```

然后在 `cordis.patch.yml` 中加入:

```yaml
- insert:
    - id: dsh-chat-tools
      name: 'dsh-chat-tools'
```

重启 `dsh web` 生效。

## 使用提示

- 宽度/位置/菜单尺寸等设置自动保存到浏览器本地。
- 提问历史跨会话按会话 ID 分别保存。
- 大纲横条仅在内容包含标题时显示,无标题内容不打扰。

## 许可证

MIT

Install

dsh plugin --profile web add github:Free-corner/dsh-chat-tools#72b40a7c8dccb81214cd7953e4978c826135ca2a

Profile: web

Source