tsonglew/dsh-workspace-search

VS Code-style workspace keyword search for DeepSeek Harness: a Search tab in dsh-better-sidebar

Bundle 已验证 MIT JavaScript 未知
Bundle 已验证

已收录

5

Ui

Bundle 已验证

版本未知
语言JavaScript
许可证MIT
在 GitHub 查看

功能介绍

VS Code 式工作区关键词搜索 Tab(better-sidebar 扩展):同时匹配文件名与文件内容,结果按文件分组带行号,点击在侧栏编辑器打开。

适合

  • 希望直接在 DSH 侧栏中进行类似 VS Code 的文件名与内容搜索的开发者。
  • 需要用正则、区分大小写或包含/排除 glob 筛选工作区的流程。
  • 希望按文件查看带行号的匹配结果,并直接在侧栏编辑器中打开的用户。

不适合

  • 未安装 dsh-better-sidebar 0.4.0 或更高版本的环境。
  • 必须搜索 .git、node_modules、dist 或隐藏文件等默认排除路径,且不调整搜索规则的场景。
  • 不能接受扫描文件数、匹配数、行长度或文件大小上限的穷尽式搜索。

README

Awesome DSH Plugin

VS Code-style workspace keyword search for the DeepSeek Harness (dsh) web GUI, registered as a Search tab inside dsh-better-sidebar.

image

  • 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

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 元数据,并保持插件与本页展示的目录身份一致。