Hi,
i’m a beginner with ST2 and i’m excited! So many amazing features.
I am working with scripting language AutoIt. Based on the tuts i’ve found in the web, i’ve made my own .tmLanguage and a related .tmTheme. That works fine.
My previous editor was SciTE. There is it possible to set environment variables in properties files. (like: variable=value, access with: $(variable) or with global array: props"variable"]).
Now i’ve searched for a similiar way in ST2. I’ve found this: Where do I set variables like TM_FULLNAME?, but the example does’nt work. I’ve stored the file as “…\packages\user\Default.tmPrefrences”.
Now i’ve tested with this snippet:<snippet>
<content><![CDATA[
;...Name: $TM_FULLNAME
;..eMail: $TM_EMAIL
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>ttt</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.autoit</scope>
<description>TEST</description>
</snippet>But the place for variables are left empty.
And is it possible to pass i.e. the current file full path as argument for an application call with keymap?
I’ve tried following:{ "keys": "f1"], "command": "C:\\Program Files (x86)\\Application\\Application.exe", "args": { "file": "$file" } }But this gets only the output:
Thanks for your effort in advance.
Best regards BugFix.