Skip to main content
S

dsh-sidebar-panel-tidy

sugartangtang66/dsh-sidebar-panel-tidy

Folds the DSH sidebar panel entries into one collapsible checklist with per-entry show and hide, and groups the settings rail into Official and Plugins blocks.

Install

dsh plugin --profile web add github:sugartangtang66/dsh-sidebar-panel-tidy

README

dsh-sidebar-panel-tidy

把 DeepSeek Harness(DSH)的侧栏与设置面板收拾干净:侧栏「更多」菜单里的面板入口收成一组可折叠清单,设置面板左栏按官方 / 插件分组,组内可直接拖动排序。

A DSH client plugin that folds the sidebar panel entries into one collapsible checklist and groups the settings rail into Official / Plugins blocks with drag-to-reorder.

功能

侧栏入口收纳

  • 侧栏「更多」菜单里只保留一个「入口收纳 n/m」折叠行,展开后分成「显示中」和「已收起」两组。
  • 每个面板入口一行开关,收起后不再占侧栏位置,随时可以放回。
  • 接管官方原生「已收起入口」列表,菜单里不再出现两份重复且互相打架的区块。

设置左栏分组与排序

  • 设置面板左侧的板块按「官方 / 插件」分组,两组之间有分组标题。
  • 在左栏直接拖动某一行即可在本组内调整顺序,也可以聚焦后按 Alt+↑ / Alt+↓。
  • 组别边界固定,拖动不会把官方板块混进插件区。

所有状态都存在浏览器 localStorage,无需后端、无需配置文件:

键作用
dsh.sidebar-panel-tidy.hidden已收起的面板入口 id
dsh.sidebar-panel-tidy.open入口收纳区是否展开
dsh.sidebar-panel-tidy.settings-order设置左栏的组内顺序

安装

需要 DSH 0.2.x(Web 端,platform: web)。

从 GitHub 安装(不依赖 npm 发布,仓库里就是可直接运行的 ESM 源码,没有构建步骤):

dsh plugin --profile desktop add github:sugartangtang66/dsh-sidebar-panel-tidy

或先把仓库 clone 到本地再链接:

git clone https://github.com/sugartangtang66/dsh-sidebar-panel-tidy.git
dsh plugin --profile desktop add ./dsh-sidebar-panel-tidy

安装后重启 DSH,在「插件管理」里确认 dsh-sidebar-panel-tidy 已启用。

卸载:

dsh plugin --profile desktop remove dsh-sidebar-panel-tidy

本插件最初以 @local/sidebar-panel-tidy 在本地开发。如果你机器上还留着那一份,请先卸载它再装这一份,两者模块 id 不同、同时启用会重复注入。

兼容性

  • DSH 0.2.x,客户端插件(client-only:index.js 是空的 Host 壳,只为让 Loader 能挂载并在插件管理里列出)。
  • 不引入任何第三方运行时依赖,require('react') 由宿主提供。
  • 设置左栏的排序是用 flex order 画的,不改 React 的 DOM 顺序,所以键盘 Tab 顺序仍是 DSH 原本的顺序。

实现说明

  • cordis.patch.yml 往组合里插入一行 sidebar-panel-tidy。
  • client.js 注入 sidebar.panellist 槽位接管「更多」菜单的面板清单,并读取 settings.section 账本给设置左栏的既有单元格画 order。
  • 语言文案内嵌在 client.js,locale/*.json 提供插件管理里显示的名称与简介(中/英)。

License

MIT

Related plugins