batches: Cmd+Z support after you replace the contents of your batch spec with a library example
Created by: eseliger
When coosing a new template, the editor history is reset and cmd Z doesn't bring you back to the previous content. We should fix that.