Nested Section Folding


Found this thread from years ago…

Any chance this is considered a feature?
I understand this may not be the desired behavior for some who prefer simplicity,but for some of us being on a spectrum from annoying pedantism to full-blown OCD, hierarchy in section nesting would be a huge thing!


This sort of nested folding is supported in R Markdown documents; e.g. try folding a document containing:

# Section 1
## Section 1.1
## Section 1.2
# Section 2

However, we don’t have anything for defining a hierarchy of sections in plain R documents (other than nested functions). We’ll have to think about this a bit more.