[TxMt] Re: Snippets: Shell interpolation in Dropdown suggestions

Simon Gregory simon at helvector.org
Tue Aug 16 17:04:19 UTC 2016


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.

> On 16 Aug 2016, at 17:17, Fabian Zeindl <fabian.zeindl at gmail.com> wrote:
> 
> That's great, but can I somehow feed part of the snippet (input $1) into the next?
> 
> 
>> On 16.08.2016, at 17:12 , Simon Gregory <simon at helvector.org> wrote:
>> 
>> If you use a command  http://manual.macromates.com/en/commands.html you can set the output to ‘snippet’.
>> 
>>> On 16 Aug 2016, at 15:57, Fabian Zeindl <fabian.zeindl at gmail.com> wrote:
>>> 
>>> Hi
>>> 
>>> is it possible to use shell code to create snippet suggestions like:
>>> 
>>> ${1|`echo item1,item2,item3`|}
>>> 
>>> ?
>>> 
>>> Would be tremendously useful
>>> 
>>> Thanks
>>> Fabian
>>> 
>>> _______________________________________________
>>> textmate mailing list
>>> textmate at lists.macromates.com
>>> http://lists.macromates.com/listinfo/textmate
>> 
>> 
>> _______________________________________________
>> textmate mailing list
>> textmate at lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
> 
> 
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate



More information about the textmate mailing list