Auto-expand sub directory if it's the only one present


Hello everyone!

I was curious if such thing is possible (but i’m having a hard time with inventing how to even search for that in google). Such function is implemented on github and bitbucket - if root dir has only one child dir, root dir link points you directly to that one sub-dir. So, for example, when using atom:

When i’m expanding controllers, helpers and queries directories, is that possible to automatically expand a front sub dirs?

Thanks in advance for any clues!


The setting is called “Collapse Directories” and can be found on the tree-view package:


Oh, it turns out that i was not using recent version of atom (auto-update didn’t worked for some reason). I’ve updated it and now i can see that setting.

Thanks for your help! That was exactly what i was looking for :slightly_smiling: