[TxMt] question for language completion or php bundle maintainers: behavior deleting a snippet element

Timothy Bates timothy.c.bates at gmail.com
Sun Feb 22 13:19:53 UTC 2009

The completion for languages is very helpful, so:
  explode(string separator, string str, [int limit])

Currently backspacing on a snippet component like "[int limit]" leaves  
a broken fn call (unwanted trailing comma), i.e:

  explode(string separator, string str,)

Is it possible to alter the generated snippets so that when the user  
backspaces on a snippet element in function calls like this, the comma  
preceding the unwanted parameter is also eaten, i.e.?

  explode(separator, str${1:, ${2:[int limit]}})
instead of
  explode(separator, str, ${2:[int limit]}})

More information about the textmate mailing list