Here is a plugin for Sublime Text editor. Painkiller for all ModX lovers. It will allow us edit all templates, chanks, shippets and plugins right here, in our text editor of choice.