Using init.coffee to auto collapse projects, possible?


#1

I’m using my init.coffee to auto add some projects to my tree using atom.project.addPath("/Users/me/project1") and this works wonderful. But is it possible to have it added in an auto-collapsed manner?


#2

You could potentially use DOM APIs to select the correct tree-view nodes and trigger their click events to collapse them? I’m not sure how exactly that would be done, but I’m pretty certain it is possible.