api icon indicating copy to clipboard operation
api copied to clipboard

Named Transactions For Undo History

Open behreajj opened this issue 4 years ago • 0 comments

Hello,

I have a feature request:

Would it be possible for app.transaction to accept an optional string argument so the transaction could be named? When the user runs a script, then wants to undo, they can open Undo History and have a better idea of what steps the script has taken. I realize that the user can already select a transaction in Undo History to see what state that would put in the image in, but some state changes may be less noticeable than others. To limit abuse, the string could have a minimum and maximum number of characters... or the string could follow a prefix. For example

app.transaction { name = "Foo", method = function() app.alert("Foo!") end }

could have the name "[Script] Foo" in the Undo History.

Thank you for considering! Jeremy

behreajj avatar Aug 13 '21 14:08 behreajj