Remembering heading and indent collapse in notes

Previously requested, albeit combined with the popular fold-in-preview request: