- Startseite
- Plugins
- Tools & Funktionen
- dsh-plugin-folder-search
dsh-plugin-folder-search
yang726turbo/dsh-plugin-folder-search
DSH plugin: find text inside a folder from the workspace file tree — content search with packaged ripgrep, matches grouped by file, jump to matching line.
Installation
dsh plugin --profile web add github:yang726turbo/dsh-plugin-folder-searchREADME
dsh-plugin-folder-search
DSH plugin (DeepSeek Harness) — find text inside a folder from the workspace file tree: right-click a directory, search file contents with packaged ripgrep, see matches grouped by file with line numbers, and jump to the matching line in the preview.
Keywords: dsh · deepseek · deepseek-harness · harness · dsh-plugin · plugin · folder search · find in folder · content search · workspace search · file search · ripgrep
安装 / Install
npm(推荐)
Plugins → Add plugin → dsh-plugin-folder-search@1.0.0
Git 直装
Plugins → Add plugin → https://github.com/yang726turbo/dsh-plugin-folder-search.git
装完刷新页面,在文件页(⌘P)右键任意文件夹 → 在文件夹中查找。
无需构建:client.js 是可直接加载的浏览器模块,index.js 是 Host 半。
A DeepSeek Harness bundle that adds 在文件夹中查找 / Find in folder to the workspace file tree's directory context menu and a folder-scoped file content search page in the right Sidebar.
What it does
- Right-click a directory (or the workspace root path) in the
filespage's file tree and pick 在文件夹中查找. - The right Sidebar opens a 文件夹搜索 page scoped to that folder with the search field focused.
- Typing searches file contents (not names) inside that folder through the
bundle's own authenticated Host route, which runs packaged ripgrep:
fixed-string, case-insensitive by default,
.gitignorerespected,.gitand dependency/build directories (node_modules,dist,build,coverage,.next, …) skipped, binary files skipped, files above 2 MB skipped. - The search bar carries two toggles on its right: 区分大小写 / Match case
(
Aa) and 全词匹配 / Match whole word (ab); both re-run the search and re-highlight the snippets. - Matches draw grouped by file: a file row with its directory and hit count, then each matching line with its number and the query highlighted.
- Clicking a file or a matching line opens it in the Sidebar's preview at that line; file rows keep the shared file context menu.
Architecture
index.js— Host half. Registers one exact Fetch route on the shared authenticated API channel (/api/folder-search) throughctx.connection.fetch.register. The route resolves the Session's workspace root fromctx.sessions+ctx.workingDirectory, rejects folders outside it, and runs packaged ripgrep (@deepseek-ai/dsh-util-ripgrep) with--jsonin that folder, parsing match records into{ files, total, truncated, incomplete }.client.js— Browser half: the context-menu contribution, thefolder-searchtab type, the page body and chip title, the search call to the route, and the grouped results list.cordis.patch.yml— the Loader row this bundle inserts.
Limits
- Content search only; file-name search is not part of this page.
- The Host's packaged ripgrep must be executable where the subprocess provider runs (local Desktop works; a remote provider without the binary fails, as the shipped name search does).
- Caps: about 1200 matches and 4000 files per search, 2 MB per file; the page says so when a cap was hit.
- Disabling the plugin removes the menu item and the page.
Ähnliche Plugins
archify (deepseek-harness)
tt-a1i/archify
WeKnora (dsh-weknora)
tencent/weknora
next-ai-draw-io (dsh-plugin)
dayuanjiang/next-ai-draw-io
AiToEarn (dsh-plugin-aitoearn)
yikart/aitoearn