I’m new to ST2. Trying to use strftime("%a %D") in a snippet with a tab trigger. I’ve hunted around quite a bit, and it seems like I should be able to set a variable $TM_mydate or whatever in a .sublime-options file? I don’t see an Options folder when I look in
~/Library/Application Support/Sublime Text 2/Packages/Default/
so I can’t see the syntax to use to set $TM_myDate = strftime("%a %D"), but maybe I don’t have to?
In my snippet, I’m using
<snippet>
<content><![CDATA[
#######################
### `strftime("%a %D")` ###
#######################
$1
]]></content>
<!-- Optional: Set a tabTrigger...
what I’d like to appear is:
#######################
Fri 04/27/12
#######################
anyone know the correct syntax to use to include the value of strftime("%a %D") in a snippet? Do I need to create a custom variable in a “something.sublime-options” file like it refers to here: goo.gl/Vn6Rd
Using Sublime Text 2, Build 2181 on Max OS x 10.7