Skip to content

Releases: hfbcwhy7gh-cpu/dsh-sidebar-tidy

v0.4.0

Choose a tag to compare

@hfbcwhy7gh-cpu hfbcwhy7gh-cpu released this 13 Oct 02:03

新增第三种展开方式:悬停「更多」这两个字附近才展开,同时也支持点击整行展开。

新增

  • 「悬停「更多」」方案(设置 → 侧栏收纳 → 展开方式,第三项):只有指针靠近**「更多」文字与其旁边图标**(各向外扩 6px)时才展开,扫过这一行的其他位置不会误触;点这一行的任何位置也能展开。收起仍与悬停方案一致:指针离开整组后延迟 220ms 折叠。
  • 窄侧栏(收成 55px 图标轨道、侧栏不渲染文字)下,命中区自动退化成图标本身,轨道态照样能悬停展开。

修复

  • 悬停判定现在同时看 mouseover 与 mousemove,并且一律用指针当前所在的位置判断命中。早期版本只看进入行那一下的坐标,指针从行边沿滑进来永远判不中 —— 这正是 0.3.1「要点击才展开」的根因,该版本已回退。
  • 键盘焦点只在用键盘移动焦点(Tab / 方向键)时算展开理由;鼠标点一下不会再让这一组粘住。

说明

  • 方案名记在 localStorage["dsh-sidebar-tidy:mode"](hover / label / click),默认仍是「悬停整行」。
  • 从旧版本升级后,展开方式沿用你原来的选择;想用新方案需去设置里手动切换。

完整变更:v0.3.0...v0.4.0

v0.3.0

Choose a tag to compare

@hfbcwhy7gh-cpu hfbcwhy7gh-cpu released this 11 Oct 08:23

dsh-sidebar-tidy 0.3.0

设置里可以逐个把入口移出折叠区,让它们回到原本的位置。

  • 设置 → 侧栏收纳 新增「移出折叠区的入口」:把侧栏现有的面板图标(插件 / 自动化任务 / 上下文洞察 / 技能中心)逐个做成开关,打开即让该入口退出折叠组、回到「新会话」下方、工作区上方;关掉又收进「更多」。
  • 被移出的行在折叠态与展开态都直接可见,且不参与悬停展开 —— 指针扫过它不会把图标组弹开。
  • 列表跟随侧栏槽位刷新:运行时新装的插件图标会自动出现在列表里;选择记在 localStorage["dsh-sidebar-tidy:keep"]。
  • 实现:图标组 display: contents + 逐行 order(移出行 order:15,组内其余 order:30);行与槽位条目靠 aria-label 文本 + slot order 对号,插件在行上写 data-dsh-tidy-id / data-dsh-tidy-keep。
  • 已在 DSH 0.2.0-rc.2(Windows / desktop profile)实机验证;截图见 README。完整变更见 CHANGELOG。

English

Settings → Sidebar tidy now has Entries kept out of the group: one switch per panel icon. A kept-out row returns below New session / above Workspaces, stays visible in both the collapsed and expanded state, and no longer springs the hover expansion open. The list follows the sidebar slot, so icons added by plugins at runtime show up too; the choice is stored in localStorage["dsh-sidebar-tidy:keep"].

Implemented with display: contents on the icon group plus per-row order (kept-out rows get order:15, the rest stay at order:30); rows are matched to slot entries by aria-label text and slot order, then tagged with data-dsh-tidy-id / data-dsh-tidy-keep.

v0.2.0

Choose a tag to compare

@hfbcwhy7gh-cpu hfbcwhy7gh-cpu released this 11 Oct 05:26

dsh-sidebar-tidy 0.2.0

新增 设置页「侧栏收纳」,两种展开方式由你选。

新增

  • 设置页「侧栏收纳」(设置里单独一页):用分段控件在 悬停展开 / 点击展开 之间切换,改完立刻生效。
  • 「记住展开状态」开关:仅「点击展开」模式下可用;打开后开合状态跨刷新保留。
  • 点击展开模式:点击入口行展开 / 收起,文案在「更多 / 收起」间切换。
  • 默认仍是 悬停展开、不记忆(与 0.1.1 完全一致);选择记在 localStorage["dsh-sidebar-tidy:mode"],开合状态记在 dsh-sidebar-tidy:click-open。
  • 设置页用 DSH 官方 UI 原子(SegmentedControl / Switch)绘制,取不到时退回自绘控件。

实机验证(DSH 0.2.0-rc.2 · Windows · desktop profile)

  • 悬停方案回归:移入展开、移开 220ms 后折叠、键盘焦点开合。
  • 设置页:两方案切换即时生效、开关在悬停模式下为禁用态、文案跟随语言。
  • 记忆:打开开关并展开后刷新页面,仍保持展开;关掉开关后回到默认折叠。
  • 折叠态提示点、失败安全(自检后才写 html[data-dsh-sidebar-tidy])等既有设计不变。

设置页截图见 README(docs/settings.jpg)。


English

New settings page "Sidebar tidy" — pick how the panel-icon group expands:

  • Hover (default) — expand on pointer enter, fold ~0.2 s after it leaves; nothing is remembered.
  • Click — click the "More" row to toggle; the label flips between "More" and "Collapse".
  • Remember the expansion state (click mode only) — the open/closed state survives a reload.
  • Drawn with DSH's own SegmentedControl / Switch, with a self-drawn fallback if the primitives package cannot be resolved.

Full details in the CHANGELOG.

v0.1.1

Choose a tag to compare

@hfbcwhy7gh-cpu hfbcwhy7gh-cpu released this 11 Oct 04:47

悬停展开:不再需要点击

  • 鼠标移到「更多」那一条上即自动展开 4 个面板图标,移开自动折叠(移开后延迟 220ms 再收,避免指针擦边闪动)。
  • 点击入口行不再切换状态,也不再记忆开合;0.1.0 写入的 localStorage["dsh-sidebar-tidy:folded"] 会被自动清除。
  • 键盘焦点进入 / 离开入口行同样展开 / 收起。
  • 入口行文案固定为「更多」,title 提示「悬停展开,移开收起」。

变更细节见 CHANGELOG。


Hover to expand

Move the pointer onto the "更多 / More" row to expand the folded panel icons; move away to fold again (a 220 ms close delay keeps accidental brush-offs from flickering). Clicking no longer toggles anything, and the open state is no longer persisted - the legacy localStorage key from 0.1.0 is cleared on load. Keyboard focus in/out of the row expands and folds as well.

Verified on DSH 0.2.0-rc.2 (Windows, desktop profile).

v0.1.0

Choose a tag to compare

@hfbcwhy7gh-cpu hfbcwhy7gh-cpu released this 10 Oct 15:14

dsh-sidebar-tidy 0.1.0

侧栏收纳插件首个版本:把「插件 / 自动化任务 / 上下文洞察 / 技能中心」面板图标收进侧栏底部的可折叠入口,让新会话在最上、工作区居中。

  • 折叠(默认)/ 展开就地切换,状态记忆在 localStorage
  • 中英文文案自适应;折叠时若被隐藏的面板处于选中状态,入口图标右上角出现小圆点
  • 纯 CSS order + display:none 实现:不改 DOM 结构;所有选择器带 html[data-dsh-sidebar-tidy] 前缀,只有自检确认真实侧栏就位后才写入,类名漂移时静默不生效
  • 已在 DSH 0.2.0-rc.2(Windows / desktop profile) 实机验证,与 dsh-claude-style 皮肤共存正常

安装与卸载见 README。


First release: folds the DSH sidebar panel icons into a collapsible entry at the bottom of the sidebar. Verified on DSH 0.2.0-rc.2.