Hello ST family,
I am absolutely new here, I would like to ask some question about plugin development regarding the undo feature:
1. Is it possible to call 'undo' command in a TextCommand (or other Commands) to undo previous command (such as paste). I tried this but it just wouldn't work:
import sublime, sublime_plugin
def run(self, edit):
print 'I would like to undo last action (by other plugin, such as previous paste'
- Is it possible to retrieve the command has been undo? It looks like that command_history just shift it out from the stack. Doing a search I found https://forum.sublimetext.com/t/detect-its-whether-a-undo-or-a-redo-command-in-on-modified/6235/1&hilit=undo#p33227 which mention
but I can't find document about them.
Thank you and happy STing.