I'm working on a plugin that folds class methods on file load. This is something I've been missing after switching from Netbeans.
Currently I use methods available in View object to loop through and manipulate regions to detect code bloks. I was wondering if anyone knows simpler way of doing this. Sublime detects function blocks for many different syntaxes so maybe there are some other better ways of doing this?