Sublime Forum

Chaining snippet expansions

#1

I have a bundle for textmate that contains the name of a hundred or so common business objects, in four forms, with five snippets each to implement a chain. The snippets are setup so that each form is the tab-expansion for the next form. For example:

iv[tab] expands to invoice
invoice[tab] expands to invoices
invoices[tab] expands to Invoice
Invoice[tab] expands to invoice_id
invoice_id[tab] expands to invoice

After importing into Sublime Text I noticed that snippet expansion chaining does not work. If I type iv[tab][tab], it stops after the first expansion, and will only expand “invoice” to “invoices” if I move the cursor away and back.

Is there anything I can do about this? If not, where would I enter chained expansion as a feature request.

0 Likes