Repeatable fields?

Skip to first unread message

Ian Tegebo

Jul 22, 2016, 5:15:08 AM7/22/16
to YASnippet Discussion Group
I believe this has been requested before, but I'd like to have repeatable fields.  In reading the code, it appears that one would need to adjust linkages between fields as code seems to assume a fixed number and ordering between fields.  Are they somehow already available?  If not, has anyone any deeper insight into implementing them?

For example, consider switch/case statements:

I'd like to have a snippet that allows a flexible number of cases.  Outside of Java, consider Common Lisp; a variety of macros take a variable length sequence of expressions often terminated by some boilerplate:

Anders Eurenius

Jul 22, 2016, 7:38:28 AM7/22/16
to YASnippet Discussion Group
The usual way to do this is to just have a snippet for case. :)

There's a way to do optional else clauses by letting the user either tab past, or delete a variable defaulting to the else part, see (Nested placeholder fields)

You received this message because you are subscribed to the Google Groups "YASnippet Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit
Reply all
Reply to author
0 new messages