You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.