dsh plugins中文
← Back to popular plugin directory

Dsh Left Sidebar Collapse

condaThinker/dsh-left-sidebar-collapse · productivity

Auto-collapse / fully-collapse the DSH left sidebar on session select (standalone DSH plugin).

★ 2GitHub stars
0Forks
2026-08-15Last updated
TypeScriptLanguage
—License

Key features

  • Auto-collapsea listener on ctx.sessions.list notices when the current session moves to a different real session
  • the AutoCollapseMachine then collapses the sidebar via ctx.layout.toggleSidebar() only while the frame renders it expanded (reading data-sidebar-collapsed), and suppresses further flips until the frame confirms the collapse — no double-toggle, no flip-back.
  • Fully collapsea shell.overlay occupant (FullCollapseButton) reactively watches data-sidebar-collapsed
  • when collapsed and "fully collapse" is on it injects a tiny grid-template-columns: 0 minmax(0,1fr) 0 !important override (so the sidebar track → 0 and the center reclaims the width) and shows the single expand button.

Requirements

  • dsh-better-sidebar coexistence — both plugins manage sidebar state independently
  • if the toggle looks like it fires without the flag on, check whether another sidebar plugin (e.g.

Install command

dsh plugin --profile web add github:condaThinker/dsh-left-sidebar-collapse
View GitHub repository ↗Back to popular plugin directory