Please consider creating an option to add undo item for the automatic unfolding of a cell resulting from the use of functions such as "search next" to jump between cells that are not currently visible, e.g. "Add undo item for the automatic unfolding of a cell".
Here's the rationale. If I press F10 to unfold a cell, the document is marked as changed and I can undo the unfolding with CTRL+Z.
Before unfolding:
After unfolding with F10 (notice there's an asterisk after the document name on the tab, and I can undo the unfolding with CTRL+Z):
If I search for a term in a cell that's not currently visible, e.g. "unfolded" in the tutorial, and press ENTER, the relevant cell is automatically unfolded but I can't undo the unfolding (there's no asterisk after the document name on the tab), even if I clear the search box:
Since I use the folded/unfolded status of a cell to manage content state (e.g. pending/finished work) and organization, I want to be able to undo the unfolding that results from the use of functions such as "search next" to jump between cells that are not currently visible.