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


#1

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!


#2

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


#3

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: