Keep collapse/expand state when closing and opening a document

See, for example:


and perhaps:

1 Like