dsh-cursorlike-sidebar
为 DeepSeek Harness 提供类 Cursor 侧边栏,支持文件浏览、代码编辑、Git 差异、终端、侧边对话及 Ctrl+L 文件引用。
安装
dsh plugin --profile web add dsh-cursorlike-sidebar
沙箱测试
这个插件还没测过。提交测试 →
README
CursorLike Sidebar
让 DSH 对话与项目文件在同一工作区协作。
Browse files, bring code into chat, and review agent edits inside DeepSeek Harness.
dsh-cursorlike-sidebar 是嵌入 DSH 原生右侧栏的工作区插件,提供文件浏览、代码编辑、Markdown 预览、Git 差异、原生终端、侧边对话与分屏,主题随 DSH 切换。
A workspace sidebar for DSH with a file browser, code editor, Markdown preview, Git diffs, native terminal, side chat, and split panes. It follows the DSH theme.
独立 DeepSeek Harness 插件,与 Cursor / Anysphere 无隶属关系。
An independent DeepSeek Harness plugin, unaffiliated with Cursor or Anysphere.
[功能介绍 · Features](#features) · [安装 · Installation](#installation) · [快捷键 · Shortcuts](#shortcuts) · [更新日志](./CHANGELOG.md) · [Changelog](./CHANGELOG_EN.md)
实际使用截图:左侧对话、右侧 Markdown 预览,选中文字后添加带行号的引用。 / In-app screenshot: chat beside a Markdown preview, with selected text referenced by line number.
<a id="features"></a>
功能介绍 · Features
1. 按习惯浏览文件 · Browse your way
同一个工作区支持三种视图,可从文件面板工具栏切换:
- 桌面图标网格 / Icon grid:默认视图,三列排列,首格返回上级。单击文件夹进入、单击文件打开,适合直观浏览。
- 树形列表 / File tree:展开目录层级,查看项目结构,适合定位源码。
- Miller 多列 / Miller columns:逐级目录并排展开,适合在深层路径间浏览。
Switch between a default icon grid, a hierarchical file tree, and Miller columns without leaving the workspace.
桌面图标网格 / Icon grid
树形列表 / File tree
Miller 多列 / Miller columns
右键可打开文件、新建 Tab、侧边打开、添加引用或复制路径。支持文件多选、复制/剪切/粘贴、重命名、删除及文件操作历史。网格中按住 Ctrl 滚轮可调整图标大小(24–160px),64px 以上的图片图标显示缩略图;树形视图支持 10–32px 图标缩放。
Use context menus and multi-selection to manage files, with clipboard operations and file operation history. Ctrl + mouse wheel adjusts icon size, with image thumbnails in larger grid sizes.
2. 把文件和选区带入对话 · Bring context into chat
选中文件或代码后按 Ctrl+L,即可把相关上下文添加到当前对话,减少复制路径、粘贴代码的步骤。
- 文件浏览器:选中文件后添加文件引用。
- 代码编辑器:选中代码后添加行范围;没有选区时添加当前行。
- Markdown 预览:选中文字后映射到源码行号,支持正文中的粗体、列表、行内代码。
- 拖放:将文件引用或选中代码拖入聊天输入区,也可把文件引用拖到文件面板打开。
Press Ctrl+L on a selected file, code selection, or Markdown preview text. References use a native @file chip with a line suffix such as line 12-18. With no editor selection, the current line is referenced. Drag files or selected code into chat for the same workflow.
引用格式示例:@src/app.ts line 12-18。Markdown 预览无法唯一定位源码时,会退化为文件引用并附上选中文字,保留必要上下文。
If a Markdown selection cannot be mapped uniquely to source lines, the reference includes the selected text as a fallback.
3. 隐藏无关文件 · Keep the file browser focused
在工作区根目录创建 .ignore,隐藏依赖、构建产物或日志。也可把文件或文件夹拖到工具栏的 .ignore 眼睛图标,自动追加规则并刷新。
Create a root-level .ignore to hide distracting files, or drag a file or folder onto the ignore icon to append a rule and refresh the browser.
node_modules .cache *.log
规则使用 gitignore 风格的 glob,当前仅读取根目录 .ignore,不支持 ! 反向选择。手动编辑后点击刷新。隐藏仅影响文件展示,不会删除文件,也不会释放磁盘空间。
Rules use gitignore-style globs. Only the workspace root file is read, and ! negation is unsupported. Refresh after manual edits. Hiding files affects display only and does not delete them.
4. 逐块审查 Agent 修改 · Review agent edits by hunk
实际使用截图:原生「第 N 轮改动」页按块审阅。工具栏显示「第 N/M 处修改 · 还剩 K 处」,提供 ↑ / ↓ 跳转、同意 / 不同意、全部同意 / 全部不同意和撤销操作(做出决定后可用)。 / In-app screenshot: block review on the native turn page — position, previous/next, accept/reject, bulk actions, and undo (enabled after a decision).
原生「第 N 轮改动」页默认单栏对比,可手动切换左右分栏。连续改动行合并为一个更改块,每块只显示一组同意 / 不同意,也可全部同意 / 全部不同意。使用 ↑ / ↓ 跳到上一处或下一处,支持 Tab 聚焦按钮和恢复已保存的审阅决定。Ctrl+K 同意、Ctrl+J 不同意、Ctrl+Z 撤销上一步,快捷键直接显示在独立审阅工具栏中。待处理内容以红绿对比显示;同意后恢复普通背景、保留新内容并隐藏旧行,Ctrl+Z 后重新显示原始对比。撤销栈保存在本地,宿主重新挂载或刷新页面后仍可撤销上一步。窄面板中操作按钮移到块下方,避免挤压文字。
The native turn review opens in unified view, with split view available on demand. Consecutive changed lines form one block. Accepting a block shows ordinary file content and hides the removed side; Ctrl+Z restores its original comparison. The toolbar shows the current position, previous/next navigation, individual and bulk decisions, and undo; Ctrl+K accepts, Ctrl+J rejects, and Ctrl+Z undoes the last decision. Undo history survives host remounts and page refreshes. Narrow panes place block actions below the text.
手动切换左右分栏后,同一组块操作仍然可用:
左右分栏对比(手动切换)。 / Side-by-side comparison (manual switch).
Agent 修改当前打开的文件后,编辑器直接显示内联差异:新增或改写行标绿,旧内容以红色删除块显示。按改动块(hunk)逐个保留 / Keep 或撤销 / Revert,处理后自动跳到下一处,操作条显示进度,也可一次处理全部修改。
The editor highlights agent edits inline, with green additions and red deleted content. Keep or revert individual hunks, move automatically to the next change, or handle all changes at once.
「更改」页按连续更改块审查本轮 write/edit 操作:每块提供保留 / 撤销,处理后跳到下一处,一个文件处理完后切到下一个改动文件。只有能重建完整旧内容、且磁盘仍匹配该操作结果时才启用写回;否则显示只读 diff 与原因。拒绝改动会立即写回磁盘。
The Changes tab groups consecutive changed lines into one review block. Keep or reject a block, move to the next change, and advance to the next file when finished. Ctrl+K accepts, Ctrl+J rejects, and Ctrl+Z undoes the last decision. Review requires a complete previous version and a matching current file; otherwise it stays read-only with an explanation. Rejecting a change writes to disk immediately.
未处理的编辑器审查状态按会话与文件保存在本地。重启后,文件仍匹配待审版本时恢复;处理完毕后清除。
Pending editor reviews are saved locally per session and file, and restored after restart when the file still matches the pending version.
5. 编辑、终端与分屏 · Edi
…(truncated)
以上内容来自 npm 上的 README,我们只做格式化,不改内容。
版本
npm 上共发布:2,最后更新 2026-10-20