<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">A useable solution to your use case is achievable. You can present a list of possibilities for $1 in a menu using $DIALOG, then fill in values for $2 and output as a snippet. I’d probably just make the alternative selections appear in the original list though.<div class=""><br class=""></div><div class="">This example might be helpful as it follows a similar route:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/simongregory/flex-tmbundle/blob/master/Commands/Auto Complete MX Component.tmCommand" class="">https://github.com/simongregory/flex-tmbundle/blob/master/Commands/Auto%20Complete%20MX%20Component.tmCommand</a></div><div class=""><br class=""></div><div class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 16 Aug 2016, at 18:40, Fabian Zeindl <<a href="mailto:fabian.zeindl@gmail.com" class="">fabian.zeindl@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">My use case is in ES6:<br class=""><br class="">Type "im" -> TAB "import $1 from "./$2"<br class=""><br class="">When entering $1 a filtered list of files should appear as $2<br class=""><br class="">fabian<br class=""><br class=""><blockquote type="cite" class="">On 16.08.2016, at 19:04 , Simon Gregory <<a href="mailto:simon@helvector.org" class="">simon@helvector.org</a>> wrote:<br class=""><br class="">Into the next? A snippet would be the final product. You could use $DIALOG to present a list of suggestions for the user to pick from, their selection could then be fed into a snippet if required.<br class=""><br class=""><blockquote type="cite" class="">On 16 Aug 2016, at 17:17, Fabian Zeindl <<a href="mailto:fabian.zeindl@gmail.com" class="">fabian.zeindl@gmail.com</a>> wrote:<br class=""><br class="">That's great, but can I somehow feed part of the snippet (input $1) into the next?<br class=""><br class=""><br class=""><blockquote type="cite" class="">On 16.08.2016, at 17:12 , Simon Gregory <<a href="mailto:simon@helvector.org" class="">simon@helvector.org</a>> wrote:<br class=""><br class="">If you use a command <a href="http://manual.macromates.com/en/commands.html" class="">http://manual.macromates.com/en/commands.html</a> you can set the output to ‘snippet’.<br class=""><br class=""><blockquote type="cite" class="">On 16 Aug 2016, at 15:57, Fabian Zeindl <<a href="mailto:fabian.zeindl@gmail.com" class="">fabian.zeindl@gmail.com</a>> wrote:<br class=""><br class="">Hi<br class=""><br class="">is it possible to use shell code to create snippet suggestions like:<br class=""><br class="">${1|`echo item1,item2,item3`|}<br class=""><br class="">?<br class=""><br class="">Would be tremendously useful<br class=""><br class="">Thanks<br class="">Fabian<br class=""><br class="">_______________________________________________<br class="">textmate mailing list<br class=""><a href="mailto:textmate@lists.macromates.com" class="">textmate@lists.macromates.com</a><br class="">http://lists.macromates.com/listinfo/textmate<br class=""></blockquote><br class=""><br class="">_______________________________________________<br class="">textmate mailing list<br class=""><a href="mailto:textmate@lists.macromates.com" class="">textmate@lists.macromates.com</a><br class="">http://lists.macromates.com/listinfo/textmate<br class=""></blockquote><br class=""><br class="">_______________________________________________<br class="">textmate mailing list<br class=""><a href="mailto:textmate@lists.macromates.com" class="">textmate@lists.macromates.com</a><br class="">http://lists.macromates.com/listinfo/textmate<br class=""></blockquote><br class=""><br class="">_______________________________________________<br class="">textmate mailing list<br class=""><a href="mailto:textmate@lists.macromates.com" class="">textmate@lists.macromates.com</a><br class="">http://lists.macromates.com/listinfo/textmate<br class=""></blockquote><br class=""><br class="">_______________________________________________<br class="">textmate mailing list<br class=""><a href="mailto:textmate@lists.macromates.com" class="">textmate@lists.macromates.com</a><br class="">http://lists.macromates.com/listinfo/textmate</div></div></blockquote></div><br class=""></div></div></body></html>