
tsonglew/dsh-workspace-search
40最近提交 2026年8月14日
dsh-workspace-search DSH 插件
dsh-workspace-search 为 DeepSeek Harness (dsh) 网页版工作区添加了 VS Code 风格的关键词搜索功能。支持搜索文件名和文件内容,按文件分组并显示行号,支持 glob 模式、正则表达式和大小写切换。点击匹配项可在 better-sidebar 编辑器中打开文件。
如何安装 dsh-workspace-search DSH 插件
dsh plugin --profile web add ./plugins/dsh-workspace-search复制不会执行命令。安装 dsh-workspace-search DSH 插件前请核对仓库和版本。
dsh-workspace-search DSH 插件数据来源
dsh-workspace-search DSH 插件快照日期:2026年8月16日
discovered
dsh-workspace-search DSH 插件能做什么
- 在工作区会话中搜索文件名和文件内容,按文件分组并显示行号
- VS Code 风格搜索规则:包含/排除文件的 glob 模式、正则表达式查询、大小写切换
- 点击匹配项可在 better-sidebar 内置编辑器中打开文件
- 默认排除 VS Code 常见目录(隐藏文件、.git、node_modules、dist、build 等),并支持可配置的截断限制
dsh-workspace-search DSH 插件适合哪些场景
- 在大型项目中快速定位某个代码片段或函数
- 使用 glob 模式查找特定文件(例如 *.config.js)
- 使用正则表达式搜索复杂模式(例如错误码)
- 排除 node_modules 等目录以加快搜索速度并减少干扰
dsh-workspace-search DSH 插件适合谁
- 使用 dsh-better-sidebar 插件的 DSH 用户,需要高效的工作区搜索功能
- 在 DSH 网页版中处理多文件项目的开发者
dsh-workspace-search DSH 插件的限制
- 需要 dsh-better-sidebar 版本 ≥ 0.4.0,该版本提供了所需的 ctx.betterSidebar API
- 存在硬限制:扫描文件数(maxFiles)、返回匹配数(maxMatches)、行长度(maxLineLength)、文件大小(maxFileBytes),超出限制时结果会被截断并报告
- 仅支持 DSH 网页版(不适用于命令行或其他界面)
dsh-workspace-search DSH 插件的仓库 README 摘录
以下文字摘自 dsh-workspace-search DSH 插件的上游仓库 tsonglew/dsh-workspace-search 的 README,版权归原作者,仅作引用。
VS Code-style workspace keyword search for the DeepSeek Harness (dsh) web GUI, registered as a **Search tab** inside [dsh-better-sidebar](https://github.com/omdsh-dev/DSH-better-sidebar). <img width="734" height="238" alt="image" src="https://github.com/user-attachments/assets/0aceb14e-b4f5-4ab4-bf1e-72da35d147b9" /> - Keyword search across the session workspace: file **names** and file **contents**, grouped per file with line numbers - VS Code-style search rules: **files to include / files to exclude** glob patterns (comma-separated, supports `**`, `*`, `?`, `{a,b}`), regular expression queries (`.*` toggle), and case toggle (`Aa`) - Click a match to open the file in better-sidebar's built-in editor - VS Code default excludes: hidden files, `.git`, `node_modules`, `dist`, `build`, `.next`, `target` etc. are skipped; caps on files, matches, and line length are reported honestly as truncation ## Install ```sh dsh plugin --profile web add ./plugins/dsh-workspace-search ``` (Requires `dsh-better-sidebar` ≥ 0.4.0, which exposes `ctx.betterSidebar`.) ## Configuration All fields optional (profile patch layer): ```yaml - id: workspace-search config: maxFiles: 5000
阅读完整 README仓库许可: MIT
dsh-workspace-search DSH 插件常见问题
如何安装 dsh-workspace-search?
在终端中运行命令 `dsh plugin --profile web add ./plugins/dsh-workspace-search`。确保你已安装 dsh 并使用 web 配置文件。该插件需要 dsh-better-sidebar >= 0.4.0 已安装并激活。
如何配置 maxFiles 或 maxMatches 的限制?
你可以在配置文件的插件部分设置这些限制。例如:config: { maxFiles: 5000, maxMatches: 300 }。所有字段都是可选的,默认值如 README 所示。
能否排除 node_modules 等目录?
可以。插件默认采用 VS Code 的排除规则(隐藏文件、.git、node_modules、dist、build 等),你也可以在“排除文件”字段中自定义 glob 模式,例如 `**/node_modules/**`。
插件支持正则表达式吗?
支持。搜索界面有一个正则切换按钮(.*)。开启后,搜索查询将被视为正则表达式。你可以使用标准的正则表达式语法。
点击搜索结果会发生什么?
点击匹配项会在 better-sidebar 内置编辑器中打开该文件,前提是 better-sidebar 已安装并配置。文件会定位到匹配行的位置。