stompy.undoer — Framework for handling undo history¶
Used for grid editing in order to unwind changes to a grid.
Generic support for recording operations, with the option of undoing those operations.
TODO: Allow for commiting only part of the history. Currently commit() discards the entire stack.
Could be better to maintain a linked list of checkpoints, each checkpoint references one before it. Then commiting a checkpoint means deleting its reference to commits before it.