Hey: Lately I have been doing a lot of working with c.dictionaries and I had an idea on how to do an instant very simple undoer script. (Just tested it, and it works).
- Generate a dictionary, c.EasyUndoer={} Then, for each root node: - Select, copy, store clipboard as a new key in c.EasyUndoer If undo command is called, its just a mater of delete all nodes in the tree,put back into the clipboard the keys one by one, then paste them into the tree. I know its not a perfect solution since they dont keep gnx numbers etc, but its a quick one, and maybe its an start for something better. This would provide easy undoer to any new script. On Thursday, October 3, 2013 3:20:58 PM UTC+2, Jacob Peck wrote: > > I'm working on a script that adds a bunch of nodes (400 or so) to the > outline, and I want it to be undoable as a single action. I haven't the > slightest idea on how to implement the c.undoer.beforeX/afterX stuff to > make this a reality. > > Edward/group, is there a tutorial on Leo's undoer at all? If not, could > someone guide me through it briefly? The docs are muddied, at least to > my eyes. > > Thanks, > -->Jake > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To post to this group, send email to leo-editor@googlegroups.com. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/groups/opt_out.