Good News! This plugin already exists. It's the Persistent text folding in editor Plugin. It's awesome. The ability to toggle all of the headings is found as a hotkey as well as in the menu under tools.
4 Likes