[TxMt] Snippet syntax: confused about mirroring
Allan Odgaard
throw-away-1 at macromates.com
Mon Mar 19 18:01:01 UTC 2007
On 19. Mar 2007, at 18:28, Robin Houston wrote:
> If I write the following snippet:
>
> ${3:x}${1:$TM_SELECTED_TEXT}$3$2
>
> activate it, then press tab twice so the first 'x' is selected, I
> would
> expect what I type to be mirrored in the other 'x' too. Why isn't it?
The last tab stop acts as a termination point. So change it to:
${3:x}${1:$TM_SELECTED_TEXT}$3$2$0
Here we have added $0 as an explicit termination point (we could also
have used $4, but $0 is better for the “semantic effect”).
More information about the textmate
mailing list