Skip to content

0.5.1

Choose a tag to compare

@titandrive titandrive released this 10 Feb 07:09
· 34 commits to main since this release

v0.5.1 — Fix folder toggle prevention

Bug Fix

  • Fixed "Allow folder toggle" not working reliably across all vaults. Previously, the plugin only intercepted DOM events (click, mousedown, etc.) to prevent folders from expanding/collapsing. This worked inconsistently — in some vaults, Obsidian's internal file explorer would still toggle the folder despite the events being stopped.

What changed

  • The plugin now patches the file explorer's setCollapsed method directly on the folder item prototype. When "Allow folder toggle" is disabled, the patched method blocks the collapse/expand call at the source, regardless of how Obsidian triggers it.
  • Event listeners upgraded from document to window level and now cover pointerdown, pointerup, mousedown, and mouseup for more complete interception.
  • The patch is cleanly removed when the plugin is unloaded.