One of my greatest grievances in my attempted switch from Vim to Atom is that the code folding in Ruby folds way too much. In Atom, it appears that absolutely everything gets folded as long as it’s indented. In Vim, I wrote my own code folding logic using
foldmethod=expr. What mechanism is it that controls folding in Atom?
This resource isn’t very technical: https://atom.io/docs/latest/using-atom-folding
And Googling has produced no other relevant results.
Poking around in package-ruby I found the setting
foldEndPattern which sounds very relevant, but I can’t find any documentation on how it works. For example, how does a fold start? Does Atom just assume that every indent should be folded?
Could somebody explain how folding works in Atom?