jps wrote:There's also a new API function, view.command_history(), which allows accessing elements on the undo/redo stack, to find out what commands have been run on a buffer - details are in the API reference.
Is there any way to find out what exactly has changed? For example, I can now tell if someone ran the "toggle_comment" command, but I can't really tell what that did to the buffer—I'd need to know the syntax, where the selections are, etc, and that's just for that one command. Is there some way to find out not just that the command modified the buffer (passing True as a second argument) but rather what that modification was?
Thanks!