codemod icon indicating copy to clipboard operation
codemod copied to clipboard

feature request: undo / go back

Open rattrayalex-stripe opened this issue 7 years ago • 1 comments

When making a large, mostly-straightforward codemod, clicking "enter" in rapid succession is the only tolerable modus operandi.

Sometimes, I see things that look potentially problematic, but my feeble human brain doesn't detect this until my eager pinky has already pressed "enter".

It would be nice to have a "b" (or maybe "u") shortcut to the previous diff and reevaluate.

I'm not sure how straightforward that would be to implement 😄

rattrayalex-stripe avatar Aug 21 '17 16:08 rattrayalex-stripe

(In this case, my workaround was to search-within-file for the result string, which was self-contained, in the currently visible file and its (alphabetically preceding) siblings, and I was able to find the change and verify it was ok).

rattrayalex-stripe avatar Aug 21 '17 16:08 rattrayalex-stripe