Folding won't work if section is preceded by another line of at least four dashes. Is this a bug or feature? I often add lines of dashes before large sections when I have very long scripts for readability, but then we lose this precious folding feature.
Here's a minimal reproducible example:
# Section 1 ####
# This will collapse with Alt+O
#####
# Section 2 ####
# This will not collapse with Alt+O
No worries! We generally welcome bug reports in the community forums first, since on occasion we can more easily triage before promoting the report to our GitHub issue tracker.