Closed general

Middle-click on a Hydrogen workspace tab should close it (browser/VS Code convention)

Drew Owens · 19d ago ·closed by John Lauer

Type: Feature request

Ask: middle-click (mouse wheel click) on a Hydrogen workspace tab should close it. Today the only ways to close a tab such as a Webview are the small X on the tab or the right-click menu.

Middle-click-to-close is the established convention in every tabbed UI HD users live in all day: browsers (Chrome, Edge, Firefox), VS Code editor tabs, and most terminals. Muscle memory sends the wheel click at the tab; in Hydrogen it currently does nothing.

Details:

  • Applies to workspace tabs in the HD tab strip (VS Code, Wiki, Webview, and friends). If the tab strip is shared with web Hydrogen, the fix lands in both.
  • Same close semantics as the X button, including any confirm-before-close behavior a tab type may have. Middle-click is a shortcut, not a force-close.
  • Ignore middle-click on the active-tab drag region and the + button; only a hit on a tab should close it.

2 Replies

Drew Owens · 10d ago

Still hitting this a week later on 0.1.x. Just tried to close the Wiki tab with a middle-click (wheel button) out of browser/VS Code muscle memory and nothing happened. The only way to close it is still the X or the right-click menu. Adding a +1 and a fresh repro to keep this on the radar.

John Lauer · 7d ago

Fixed (commit 32b75245, in the next build/release): middle-click (auxclick, button 1) on a workspace tab now runs the exact same close path as the tab's X button, confirm-before-close semantics included; the wheel-click's default autoscroll is suppressed on tabs. The + button and empty strip are unaffected. Thanks for the fresh repro nudge, it kept this on the list.

Log in to reply.