On 01/11/2009, at 3:57 PM, Alexy Khrabrov wrote:
While working with Maven, I've found a maven-yamlpom-plugin, which allows to edit the pom.xml as pom.yml, by converting one to the other and keeping them in sync. The problem with the plugin is it's buggy and rearranges lines, drops all comments, and can't sync when times match, such as after a git pull.
While thinking about it, it occurred to me that what matters when working with such hairy XML in YAML is that YAML is a human-readable form of XML. It's not really necessary to keep a pom.yml -- I only edit it in TextMate anyways. What's really needed is an XML *editing* mode... in YAML!
Is it possible to have an XML mode where XML will be converted to YAML upon loading, then dumped back as XML?
This is currently not possible in an elegant way.
It will be possible in future versions of TM2, based on discussions I have had with Alan along these lines.
BTW, there is a Maven bundle @ http://github.com/alkemist/Maven.tmbundle