[TxMt] TM2, XML: ^< creating not well-formed code, change in TAB key behavior

Christopher Creutzig christopher at creutzig.de
Tue Jan 10 13:10:34 UTC 2012


When in XML mode, with the caret inside <a></a> like <a>|</a>, pressing
^< does not result in <a><p></p></a> as it does in TM1, but in
<a<>></>></a>, which is not well-formed XML.

Also, in an empty file in XML mode, pressing ^< a TAB will, in TM1, move
the caret inside the element, but in TM2, it seems to hit the snippet
bound to <a, resulting in

<name attr="value">

That snippet exists in TM1, too, but it seems the priority of who gets
the TAB key first has changed. Tabbing inside a freshly created element
still works in TM2 for elements whose name is not a snippet trigger.


More information about the textmate mailing list