[TextMate] questions about snippets
Allan Odgaard
allan at macromates.com
Wed Oct 20 18:15:53 UTC 2004
On 20. Oct 2004, at 19:02, kumar mcmillan wrote:
> 1) are snippets stored anywhere on the system? Looked in the Library
> but couldn't find anything. Was wondering if they are in XML files
> somewhere to be backed up or shared/
Yes, they are in:
~/Library/Application
Support/TextMate/Bundles/Custom.tmbundle/Snippets/
> 2) is there a way to use TM variables in snippets? specifically, I
> was hoping to insert $TM_DATE in the snippet somwhere.
The TM_DATE is not among the default variables.
But in a snippet you can execute normal shell commands by embedding
them in back-ticks (if you're running one of the betas).
So e.g. do: »(c) `date +%Y` Your name« to get the year.
Kind regards Allan
More information about the textmate
mailing list