TheSpyder / SyncedSideBar

Sublime Text plugin to sync project sidebar (folder view) with currently active file.
341 stars 23 forks source link

Collapse other paths #43

Closed ovikholt closed 7 years ago

ovikholt commented 7 years ago

This is a feature request.

When you work on a project with a large hierarchy of files, the directory tree quickly gets very expanded and it's no longer possible to use it to get an overview, when for instance one sub-directory with many files in it expands to obscure the whole view. Therefore, it would be nice with some sort of functionality that collapses folders that you are no longer interested in.

For instance, this could be accomplished by collapsing a folder when the user closes the last tab with a file present in it, unless perhaps, the user has touched the directory tree with the mouse in this location.

Thanks for a wonderful plugin!

TheSpyder commented 7 years ago

I wish I could help. I really do. Unfortunately Sublime has no API for plugins to control the sidebar; all it has is a way to query whether the sidebar is visible, and even that is a very recent addition (build 3098).

Duplicate of #34.