0f271ed2dd4c78b78a6cc43a613516ff31789a46
Note:
I did not account for groups in some commits prior to the latest copy/paste fix; group behavior when using undo/redo might have changed on commit 018a48c.
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.
Installation:
- Navigate to
/ComfyUI/custom_nodes/folder; git clone https://github.com/bmad4ever/ComfyUI-Bmad-DirtyUndoRedo.
Troubleshooting
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).
Why "dirty"?
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.
Languages
JavaScript
97.7%
Python
2.3%