[TxMt] Re: command to renumber snippet tabs?

Nick ParadoxQuine at gmail.com
Mon Aug 11 16:24:50 UTC 2008


great idea! if no one has written this I *may* give it a stab when I have
time.

On Mon, Aug 11, 2008 at 1:41 AM, Timothy Bates <timothy.c.bates at gmail.com>wrote:

> hi,
> just wondering if anyone has written a command to renumber the
> ${1:var} items in a snippet? I find myself doing this quite often when
> developing a new snippet and it is a bit tedious.
>
> Ideally, the command would allow you write a snippet like this
>
> ${n:not sure${n:about} the ${n:order) ${n:yet ${n:but that no longer
> matters}}
>
> and have the command turn it into
>
> ${1:not sure${2:about} the ${3:order) ${4:yet ${5:but that no longer
> matters}}
>
> as well as coping with
>
> ${1:not sure${2:about} the ${3:order) ${n:oops, added this!} ${4:yet
> ${5:but that no longer matters}}
>
> -->
>
> ${1:not sure${2:about} the ${3:order) ${4:oops, added this!} ${5:yet
> ${6:but that no longer matters}}
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20080811/4b44ec3c/attachment.html>


More information about the textmate mailing list