Bmad's Dirty Undo-Redo for ComfyUI
ComfyUI extension that adds undo (and redo) functionality.
Undo: Ctrl/⌘ + Z
Redo: Ctrl/⌘ + Y ; or Ctrl/⌘ + Shift + Z
Keeping the keys pressed will repeat the undo/redo operation at an ever-increased pace.
- Navigate to
/ComfyUI/custom_nodes/
folder; git clone https://github.com/bmad4ever/ComfyUI-Bmad-DirtyUndoRedo
.
This extension overrides some prototypes' methods but should keep the original behavior intact. Make sure this extension is the last to be loaded so that it affects all node types (web extensions appear to be loaded in alphabetic order with respect to their path).
I was mainly concerned with getting a somewhat working solution quickly and not so much with implementing it "right". For example, the undo/redo data contains snapshots of the entire serialized workflow (this is overkill), and I'm not considering changing it.