Auto-reveal current file => close/collapse folders that i am currently not in

Use case or problem

i really like the auto reveal feature in the folder widget in one of the recent updates, but currently itll only open folders and will slowly just open every folder and make things messy and can make it hard to see where i am when my current note gets auto revealed.

Proposed solution

i think it would be neat if the auto reveal could automatically close folders when i leave them, IE when it auto reveals my current note, collapse every thing else

Current workaround (optional)

currently when too many things open i just hit the collapse all button and then toggle auto reveal off and on

Related feature requests (optional)

7 Likes

Seconding this!

Use case or problem

Folder structure is quite important for how I navigate my vault. The “auto-reveal current file” option is helpful, but it would be even better if all other folders — the ones that do not contain the currently open file — were automatically collapsed.
This would make it much easier to keep an overview, especially in larger vaults.

Proposed solution

Add an option that, when revealing the current file in the sidebar, automatically collapses all unrelated folders. This would leave only the folder path to the active file expanded.

Current workaround (optional)

Right now, I have to manually collapse all other folders to see, at a glance, only the folder hierarchy leading to the current file.