Sublime Forum

Sidebar Group Folders with Single Sub-Folder


I would like to have the folders with single sub-folders grouped together so I do not need to click through them to get to the main packages that I need to work with.

I am unable to find a plugin (SidebarEnhancements doesn’t seem to have this feature) or a topic this was discussed.

Is there anything that offers this functionality?

1 Like

Skip folder that only contains one sub folder?

Sublime doesn’t do this on its own and there’s not currently any API that would allow a plugin to modify the contents/display of the sidebar, so I don’t think there’s any way to do something like that.

1 Like


So, do you want to group or hide them? In case of the former, how do you imagine this “group” to work?



Thanks for the quick replies!

I want to group them together, meaning that they would show up as:

followed by:


I imagine this to work as in any major IDEs such as IntelliJ or Eclipse. However, sounds like this isn’t supported just yet, which is not a major problem.




So my initial guess was right … I should have followed with it.

Anyway, what you meant aren’t exactly “empty” folders but folders with just one subfolder. Then ST could combine them and expand to the first directory that contains more, just like Github does here.
I like this idea, although I don’t particularly need it since I mostly develop in Python where namespaces are not as hierarchical.

Screenshot for convenience:


1 Like


Yep, good point. Corrected the title and the main question.



Here is the intended effect, if any good soul wants to try hacking on it:



I guess this should be optional or exposed via the API, otherwise existing workflows like right clicking on a folder to open it in a file manager, search or create a new file etc would no longer be as possible on an ancestor



Is there any updates to this?



No; the sidebar still represents files as they appear structured on disk.



It’s certainly a good idea. Toolchains that require/promote these redundant nested directories are mind-numbing!

Here is the most relevant feature request: