tsonglew/dsh-workspace-search
VS Code-style workspace keyword search for DeepSeek Harness: a Search tab in dsh-better-sidebar
已收录
5
Ui
Bundle 已验证
功能介绍
VS Code 式工作区关键词搜索 Tab(better-sidebar 扩展):同时匹配文件名与文件内容,结果按文件分组带行号,点击在侧栏编辑器打开。
适合
- 希望直接在 DSH 侧栏中进行类似 VS Code 的文件名与内容搜索的开发者。
- 需要用正则、区分大小写或包含/排除 glob 筛选工作区的流程。
- 希望按文件查看带行号的匹配结果,并直接在侧栏编辑器中打开的用户。
不适合
- 未安装 dsh-better-sidebar 0.4.0 或更高版本的环境。
- 必须搜索 .git、node_modules、dist 或隐藏文件等默认排除路径,且不调整搜索规则的场景。
- 不能接受扫描文件数、匹配数、行长度或文件大小上限的穷尽式搜索。
README
dsh-workspace-search
VS Code-style workspace keyword search for the DeepSeek Harness (dsh) web GUI, registered as a Search tab inside dsh-better-sidebar.
- 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,targetetc. are skipped; caps on files, matches, and line length are reported honestly as truncation
Install
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):
- id: workspace-search
config:
maxFiles: 5000 # hard cap on files scanned per search
maxMatches: 300 # hard cap on total content matches
maxLineLength: 300 # hard cap on one reported line
maxFileBytes: 1048576 # files above this skip the content scan
How it works
Dual-face bundle. The host half registers a Connection RPC channel
/workspace-search (loopback trust fence, same as the built-in /api).
The browser half registers a tab through ctx.betterSidebar.registerTab.
Search results open in the sidebar editor via openTab({type: 'editor'}).
License
MIT
常见问题常见问题
在启用了 DSH 的终端中执行已验证命令 dsh plugin --profile default add github:tsonglew/dsh-workspace-search。命令会解析公开 package 元数据,并保持插件与本页展示的目录身份一致。
兼容性以页面上展示的 bundle 与 profile 状态为准。如果某个 profile 尚未检测到,请先保持禁用,并在生产启用前阅读仓库文档。
GitHub 链接和 activity 元数据是 release 与维护状态的来源。新版本发布后重新查看本页,确认目录已经观察到最新版本。