tsonglew/dsh-workspace-search 预览 preview

tsonglew/dsh-workspace-search

Plugin插件 Native原生 ⭐ 5 MIT UI & Themes界面与主题

为 DeepSeek Harness 提供 VS Code 风格的工作区关键字搜索:在 dsh-better-sidebar 中增加一个搜索标签页。

Project Overview项目介绍

DSH Workspace Search adds a VS Code-style keyword search tab to dsh-better-sidebar, scanning workspace file names and contents, then reporting matches grouped per file with line numbers. It supports include/exclude glob patterns, regex toggling, and case toggling; clicking a match opens the file in the sidebar editor. Default excludes like .git, node_modules, dist, and build are skipped, and truncation is reported honestly. It requires dsh-better-sidebar ≥ 0.4.0; large binary files are skipped from content scanning.

DSH 工作区搜索为 dsh-better-sidebar 添加 VS Code 风格的关键字搜索标签页,可扫描文件名与内容并按文件分组显示行号。支持 include/exclude glob、通配符与 {a,b}、正则切换与大小写切换,点击匹配项在侧栏编辑器打开。默认跳过 .gitnode_modulesdist 等目录,并在截断时如实提示。需配合 dsh-better-sidebar ≥ 0.4.0 一起使用;大型二进制文件不会进行内容扫描。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:tsonglew/dsh-workspace-search

tsonglew/dsh-workspace-search 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-workspace-search

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

上一个 Prev dsh-server-deck 下一个 Next dsh-widgets