diff --git a/README.md b/README.md index a8f63ea..247265f 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,16 @@ # dsh-better-sidebar - -

- 一个插件,一套完整工作台
- 文件管理、编辑预览、内嵌浏览器、真实终端、Git 面板、后台任务页 —— 右侧栏 + 底部面板双工作台,一个插件全部搞定。
- 支持 Tab 窗口随意拖拽,支持三方拓展注册新 Tab 页面和文件预览 -

+ +
+ 一个插件,一套完整工作台

+ 文件管理 编辑预览 内嵌浏览器 真实终端 Git 面板 后台任务页

+ 右侧栏 + 底部面板双工作台,一个插件全部搞定。
+ 支持 Tab 窗口随意拖拽,支持三方拓展注册新 Tab 页面和文件预览 +
-

+

🌏 中文 · English -

+
https://github.com/user-attachments/assets/23187822-047e-45cc-b480-fe997bd55b86 @@ -32,17 +33,6 @@ https://github.com/user-attachments/assets/23187822-047e-45cc-b480-fe997bd55b86 - **🔌 服务化**:暴露 `ctx.betterSidebar` 服务,其他插件可注册侧边栏 tab 与文件预览器(内置 7 tab + 9 viewer 也走同一服务,详见 [AGENTS.md](./AGENTS.md)) - **🌏 多语言**:界面文案跟随 DSH 的语言设置(zh/en)实时切换——Host 偏好优先于浏览器语言,词典注册进 DSH 的 i18n 命名空间;切换语言无需刷新 -## ⌨️ 快捷键 - -| 操作 | 按键 | -|---|---| -| 保存编辑 | `Ctrl/Cmd + S` | -| Git 提交 | `Ctrl + Enter` | -| 关闭 Tab | 鼠标中键 | -| 拆分/合并分栏 | 拖 Tab 到分栏边缘 / 中间 | -| 引用文件到输入框 | 悬浮行尾 `@文件` 按钮 | -| 复制文件路径 | 右键行 → 复制相对/绝对地址 | - ## 🚀 安装 前置:已安装 DSH(`dsh web` 可运行),Node.js ≥ 20、pnpm ≥ 10。`@deepseek-ai/*` 已发布到 npm,`pnpm install` 直接解析、无需令牌。把下面提示词**整段**发给 DSH 即可自动完成克隆、构建、注册与安装: @@ -90,6 +80,17 @@ dsh registry enable dsh-external/dsh-better-sidebar +## ⌨️ 快捷键 + +| 操作 | 按键 | +|---|---| +| 保存编辑 | `Ctrl/Cmd + S` | +| Git 提交 | `Ctrl + Enter` | +| 关闭 Tab | 鼠标中键 | +| 拆分/合并分栏 | 拖 Tab 到分栏边缘 / 中间 | +| 引用文件到输入框 | 悬浮行尾 `@文件` 按钮 | +| 复制文件路径 | 右键行 → 复制相对/绝对地址 | + ## 🔌 服务化:注册 tab 与文件预览器 从 v0.4.0 起暴露 `ctx.betterSidebar` 服务,其他插件可注册侧边栏页面与文件预览器(内置 7 tab + 9 viewer 也走同一服务,吃自己的狗粮): diff --git a/README_EN.md b/README_EN.md index a28722c..649b3e4 100644 --- a/README_EN.md +++ b/README_EN.md @@ -1,15 +1,16 @@ # dsh-better-sidebar - -

- One plugin, one complete workbench
- File management, edit & preview, embedded browser, real terminal, Git panel, background tasks — dual workbench: right sidebar + bottom panel, all in one plugin.
- Tabs are freely draggable; third-party plugins can register new tab pages and file viewers -

+ +
+ One plugin, one complete workbench

+ File management Edit & preview Embedded browser Real terminal Git panel Background tasks

+ Dual workbench: right sidebar + bottom panel, all in one plugin.
+ Tabs are freely draggable; third-party plugins can register new tab pages and file viewers +
-

+

🌏 中文 · English -

+
https://github.com/user-attachments/assets/23187822-047e-45cc-b480-fe997bd55b86 @@ -32,17 +33,6 @@ https://github.com/user-attachments/assets/23187822-047e-45cc-b480-fe997bd55b86 - **🔌 Service API**: exposes the `ctx.betterSidebar` service — other plugins can register sidebar tabs and file viewers (the 7 built-in tabs + 9 viewers go through the same service, see [AGENTS.md](./AGENTS.md)) - **🌏 i18n**: UI text follows DSH's language setting (zh/en) with live switching — Host preference takes priority over browser language, dictionaries registered into DSH's i18n namespace; no refresh needed -## ⌨️ Keyboard Shortcuts - -| Action | Keys | -|---|---| -| Save edits | `Ctrl/Cmd + S` | -| Git commit | `Ctrl + Enter` | -| Close tab | Middle mouse button | -| Split / merge panes | Drag tab to pane edge / middle | -| Reference file to input | Hover the `@file` button at end of line | -| Copy file path | Right-click row → copy relative/absolute path | - ## 🚀 Installation Prerequisites: DSH installed (`dsh web` works), Node.js ≥ 20, pnpm ≥ 10. `@deepseek-ai/*` packages are published to npm and resolved directly by `pnpm install` — no token needed. Send the following prompt **in full** to DSH and it will automatically clone, build, register and install: @@ -90,6 +80,17 @@ Update: `git pull && pnpm install && pnpm build` → `node scripts/package-regis +## ⌨️ Keyboard Shortcuts + +| Action | Keys | +|---|---| +| Save edits | `Ctrl/Cmd + S` | +| Git commit | `Ctrl + Enter` | +| Close tab | Middle mouse button | +| Split / merge panes | Drag tab to pane edge / middle | +| Reference file to input | Hover the `@file` button at end of line | +| Copy file path | Right-click row → copy relative/absolute path | + ## 🔌 Service: register tabs & file viewers Since v0.4.0 the plugin exposes the `ctx.betterSidebar` service — other plugins can register sidebar pages and file viewers (the 7 built-in tabs + 9 viewers go through the same service, eating our own dog food):