DSH web plugin: VSCode-like right sidebar — fork with read-only-by-default editing and no bottom panel
https://www.npmjs.com/package/@keith9681/dsh-sidebar
- TypeScript 91.3%
- CSS 6.2%
- Shell 1.7%
- PowerShell 0.7%
- JavaScript 0.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
原文档是上游 dsh-better-sidebar 的消费方文档搬运(771 行), 大量内容(GitHub CI、Windows 路径、上游安装命令)与本仓库 实际不符。按 2026-08-23 服务器重构 + v0.15.4 真发布全流程 重写为实战导向: - 仓库定制身份(默认只读/无底部面板、vendor-readonly 基线) - 服务器开发环境(路径/服务/访问方式) - 开发循环(实测免重启免刷新热加载) - 门禁(typecheck/test/test:mount) - Forgejo git 工作流 - npm 发布流程(三处版本号、浏览器逐次授权) - 架构速览 + 已知坑(漂移/pkill/link: 等) |
||
| .github | ||
| docs | ||
| scripts | ||
| src | ||
| tests | ||
| .gitignore | ||
| AGENTS.md | ||
| cordis.patch.yml | ||
| dsh.plugin.json | ||
| LICENSE | ||
| package.json | ||
| playwright.config.ts | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| README.md | ||
| README_EN.md | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| tsdown.config.ts | ||
| vitest.config.ts | ||
@keith9681/dsh-sidebar
A DSH web plugin: a VSCode-style right sidebar (files / editor / terminal / git / browser / tasks / side chat), isolated per conversation session.
This package is a fork of dsh-better-sidebar (based on v0.15.2) with two customizations:
- Read-only by default: file saves and Git write operations are rejected unless the current session is explicitly switched to "editable" via the 🔓 lock icon in the editor toolbar; new sessions go back to read-only automatically.
- No bottom panel: all tabs live in the right panel only; the bottom panel and its toggle were removed.
Install
# Install as a DSH plugin
dsh plugin --profile web add @keith9681/dsh-sidebar
# Or as a dependency
npm install @keith9681/dsh-sidebar
Usage
- Click the panel toggle in the top-right corner to expand the sidebar.
- Open tabs from the quick-launch cards centered in the empty panel (Files / Source Control / Tasks / Terminal / Browser) or the "+" menu in the tab strip.
- Use the lock icon in the editor toolbar to switch the current session between read-only and editable; while read-only, the save button and Git write operations are disabled.
Extending
The ctx.betterSidebar service lets other plugins register sidebar tabs (registerTab) and file viewers (registerFileViewer), with the same API as upstream dsh-better-sidebar.
License
MIT