"Auto-reveal current file" button => collapse all other folders

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.

A post was merged into an existing topic: Auto-reveal current file => close/collapse folders that i am currently not in