StateSmith / StateSmith-drawio-plugin

Apache License 2.0
4 stars 1 forks source link

modify "undo" behavior when entering/exiting states #10

Closed adamfk closed 1 year ago

adamfk commented 1 year ago

enter a state, then CTRL+Z or undo action and it pops you out of the state. This isn't ideal though because it doesn't function like our smart exit that remembers zoom and position.

Should keep undo behavior for entering/exiting though instead of disabling it. Imagine entering deep into a state, then modifying it, then exiting all the way back out and wanting to undo the change. Ideally it would just jump right back to where the last real edit was made. It currently works by re-entering states (view and zoom reset dumbly though), but that's better than staying at the document root and not seeing what you are undoing inside a collapsed state.