I wonder if there is a way of preserving the expansion state of a copied outline when it is pasted elsewhere ?
(When I paste material from one file into a another, the pasted material is fully collapsed)
Difficult, I guess, because the expansion state is recorded as a list of unique node ids, and a paste elsewhere clearly needs a fresh sets of ids.
Might it be possible to combine the id replacements with an oldID → newID translation of the
expandedItems string ?