Changes between Initial Version and Version 2 of Ticket #2097


Ignore:
Timestamp:
Jun 24, 2019, 7:28:14 PM (6 years ago)
Author:
Conrad Huang
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2097

    • Property Cc gregc@… added
    • Property Owner changed from Conrad Huang to Greg Couch
  • Ticket #2097 – Description

    initial v2  
    22
    33{{{
     4# Aggregate undo action is registered after "with"
    45with session.undo.aggregate("cmd_title"):
    56   run("command 1; command 2; command 3")
    67   # Each command needs to be undone, in order
     8
     9# Must manually register custom undo action
    710with session.undo.block("tile"):
    811   run("move x 10 #1; move x 20 #2")
    912   # A bunch of commands whose net result is captured by view
    1013   # and undo only uses the saved views
     14session.undo.register(myCustomUndoAction)
    1115}}}
    1216