DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-excel-panel

M

dsh-excel-panel

Manifest valid★ 4

DSH Right Sidebar Excel Editing Plugin: supports xlsx preview/editing, real-time formula calculation, cell merging, formatting, and saving changes back to the original file.

UI (client)hasBundlePatch

📊 dsh-excel-panel

DSH 右侧栏 Excel 编辑插件:在 dsh-better-sidebar 中直接预览、编辑和保存 .xlsx 文件。

License Platform Version

简介

dsh-excel-panel 是一个面向 DSH Web 的右侧栏插件,让你不用离开聊天界面就能:

  • 打开 .xlsx 文件并直接编辑单元格
  • 像 Excel 一样操作工作表、合并单元格、调整字体样式
  • 实时预览公式计算结果
  • 一键保存回原文件

✨ 功能特性

交互

  • 单击选中单元格
  • 双击编辑文字
  • 点击空白处取消选中
  • 拖动 / Shift+点击多选范围
  • 多选范围使用淡蓝色半透明叠加,不遮挡单元格底色

格式工具栏

  • 字体大小下拉框
    • 多选时如果字体大小不一致,显示空白“字号”
  • 加粗 B / 斜体 I / 下划线 U
    • 多选时能识别统一状态
  • 左对齐 / 居中 / 右对齐
  • 字体颜色菜单
    • 20 个标准色
    • 自定义颜色:5 个自定义色块 + RGB 滑块 + HEX 输入
  • 背景颜色菜单
    • 20 个标准色
    • 自定义颜色:5 个自定义色块 + RGB 滑块 + HEX 输入

自定义颜色

  • 左键点击自定义色块:直接使用该颜色
  • 右键点击自定义色块:打开内嵌色盘设置颜色
  • 色盘内支持:
    • 40 个快速选色
    • RGB 三通道滑块
    • HEX 输入框
    • 预览色块
    • ✓ 确认按钮

单元格与工作表

  • 公式栏 fx
  • 公式实时推导:
    • + - * / ^、单元格/区域引用
    • SUM、ROUND、IF、MAX、MIN、AVERAGE、COUNT、ABS、INT、LEN、UPPER、LOWER
  • 合并 / 取消合并
  • 插入 / 删除行和列
  • 列宽 / 行高拖拽调整
  • 底部 Sheet 栏 + 新建工作表
  • 右键菜单:复制 / 粘贴 / 清除 / 合并 / 插入删除行列

保存

  • 每次保存都会重建整个 xlsx,避免样式表逐步损坏
  • 多次保存格式不丢失
  • 保存失败时提示具体原因
  • 文件被占用时提供“关闭占用程序并重试”

撤销 / 重做

  • Ctrl+Z 撤销
  • Ctrl+Y / Ctrl+Shift+Z 重做

📦 安装

方式一:npm 安装(推荐)

dsh plugin --profile web add dsh-excel-panel

或者直接安装到项目:

npm install dsh-excel-panel

方式二:本地 file 依赖

将插件目录放到本地,例如:

D:\apps\DP专武\dsh-excel-panel

在 DSH profile 目录(通常为 ~/.dsh/profiles/web)执行:

dsh plugin --profile web add file:D:/apps/DP专武/dsh-excel-panel

方式三:zip 包安装

从 GitHub Releases 下载 dsh-excel-panel-v0.6.1.zip,解压到任意目录,再按方式一添加 file 依赖即可。

🚀 使用

  1. 重启 DSH Web。
  2. 在右侧栏打开任意 .xlsx 文件。
  3. 单击选中单元格,双击编辑文字;也可以在上方 fx 栏输入公式,例如 =D2*0.15。
  4. 多选范围后,使用格式工具栏批量调整字体、颜色、对齐等。
  5. 点击右上角「保存」写回磁盘原文件。

⌨️ 快捷键

快捷键功能
Ctrl+Z撤销
Ctrl+Y / Ctrl+Shift+Z重做
按住 Shift 点击选择范围
鼠标拖动选择范围
双击编辑单元格
Enter编辑时确认并下移
Tab编辑时右移

🧩 插件结构

dsh-excel-panel/
├── package.json
├── cordis.patch.yml
├── README.md
├── CHANGELOG.md
├── DEBUG_V2.md
└── lib/
    ├── index.js      # 后端:读取/写入 xlsx
    └── client.js     # 前端:Excel 编辑器 UI

🔌 后端接口

方法路径说明
POST/excel-panel/read读取 xlsx,返回单元格数据、公式、样式、合并区域
POST/excel-panel/write重建并写回 xlsx
POST/excel-panel/unlock关闭占用目标文件的进程
POST/excel-panel/log写入操作日志

⚙️ 开发

# 修改后检查语法
node --check lib/index.js
node --check lib/client.js

# 同步到 profile 运行目录
cp -r lib ~/.dsh/profiles/web/node_modules/dsh-excel-panel/

📄 License

当前仓库使用 MIT,允许自由使用、修改和分发。

Compatibility

DSH 0.2.1-rc.4: failedDSH 0.2.2-alpha.2: failedDSH 0.2.1-rc.3: failed

Versions

Latest versionPublishedSize
0.2.0——
0.3.0——
0.3.1——
0.3.2——
0.6.0——
0.6.1——

Comments

Loading…

Similar plugins

dsh-sidebar-onlyoffice

by chendefine

DSH web plugin: open and edit .docx/.xlsx/.pptx in the better-sidebar editor through a self-hosted ONLYOFFICE Document Server (JWT-signed config, atomic save-back, live refresh on AI edits)

Manifest valid

★ 0

MIT

TypeScript

Sep 2, 2026

dsh plugin --profile web add dsh-sidebar-onlyoffice

by ccq1

DSH 侧边栏,集成文件浏览器、终端和 Git 审查,方便预览文件。

UI & ExperienceManifest valid

★ 15

BSD-3-Clause

JavaScript

Aug 14, 2026

dsh plugin --profile web add @dsh-external/dsh-side-panel

by lemonhall

DSH 右侧栏记账本:记一笔、本月结余、分类统计;金额按分存整数(ledger_panel)。

Manifest valid

★ 0

JavaScript

Oct 3, 2026

dsh plugin --profile web add dsh-ledger-dock

by Nanfeng0108

把 Excel/PDF/Word 资料批量做成小红书图文:提炼选题、写文案、按模板出封面与内页图。DSH Desktop 工作台插件。

Manifest valid

★ 0

MIT

HTML

Oct 19, 2026

dsh plugin --profile web add dsh-xhs-batch-studio

by zuojinxin

让 DSH 的扩展入口和视图标签支持折叠、排序、隐藏。Collapse, reorder and hide the DSH sidebar extensions and the conversation view tabs.

UI & ExperienceDevelopment & InfrastructureManifest valid

★ 5

↓ 602/wk

MIT

JavaScript

Nov 2, 2026

dsh plugin --profile web add dsh-sidebar-manager

by copylee711

DeepSeek Harness 插件:AI 直接在你打开的 Word / Excel / PowerPoint 里改文档,改动实时可见,可以一起编辑(Windows)

Development & InfrastructureManifest valid

★ 20

↓ 2k/wk

MIT

TypeScript

Oct 23, 2026

dsh plugin --profile web add @copylee/dsh-office