Home Download Buy Blog Forum Support

20090610 Beta

20090610 Beta

Postby jps on Wed Jun 10, 2009 4:58 pm

20090610 is out, with many of the usual TextMate snippets included by default. I've not been able to test most of these, so I'm keen to hear about any problems.

Note that this version is _not_ fully backwards compatible with existing *.sublime-snippet files: $0 has changed meaning, and now works the same way as it does in .tmSnippet files, this means:
- It's the last tab stop, rather than the first
- If it's left out, then it'll be automatically added to the end of the snippet.

This means you will almost certainly need to update any snippets you've made yourself. Please accept my apologies in advance for this, but in the long run, it really will be best for everyone's sanity.

Thanks to Nick (aka Sublimator) for his help wrangling the snippets for this release.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: 20090610 Beta

Postby EJ12N on Wed Jun 10, 2009 6:24 pm

jps wrote:20090610 is out, with many of the usual TextMate snippets included by default. I've not been able to test most of these, so I'm keen to hear about any problems.

Note that this version is _not_ fully backwards compatible with existing *.sublime-snippet files: $0 has changed meaning, and now works the same way as it does in .tmSnippet files, this means:
- It's the last tab stop, rather than the first
- If it's left out, then it'll be automatically added to the end of the snippet.

This means you will almost certainly need to update any snippets you've made yourself. Please accept my apologies in advance for this, but in the long run, it really will be best for everyone's sanity.

Thanks to Nick (aka Sublimator) for his help wrangling the snippets for this release.


I am happy to hear about $0 got changed to last tab stop :)
Keep up the good work! :D
EJ12N
 
Posts: 281
Joined: Tue Apr 21, 2009 5:23 pm

Re: 20090610 Beta

Postby EJ12N on Wed Jun 10, 2009 8:44 pm

Ok played a little bit with few snippets and have few feature requests...

First the little one,
Can you add PHP to the list of filetypes?
Image

Now the other one is regarding snippets, it might already be on your todo list...
I want snippets to be able to use same tab trigger, if that happens then show a "context menu" just like textmate does.
An example would be in the PHP snippets, see the ones that start with $_
Also doctype is another one, so you can pick between different doctypes..

This is only feature sublime lacks in snippets that I really want to have (regex replacements and python code in snippets, can wait I don't mind!) :D

As you may have guessed it, these snippets don't work right now in sublime. They only work if you select them from the menu...
EJ12N
 
Posts: 281
Joined: Tue Apr 21, 2009 5:23 pm

Re: 20090610 Beta

Postby jps on Wed Jun 10, 2009 11:01 pm

re: PHP syntax, I'll take a look, but in the past the thing to do has been to use HTML, and it'll pickup the PHP escapes automatically.

Regex replacements should be fully functional, and snippets sharing the same tab trigger are on the todo list.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: 20090610 Beta

Postby EJ12N on Thu Jun 11, 2009 3:10 pm

sublimator wrote:Yay, didn't realize how many bloody snippets I had. Glad that is over.

LOL nice work nick! I'm sure someone will find that useful!

I always stayed away from using $0 as my first one since I am a textmate freak :S so I didn't have to "suffer" lol
EJ12N
 
Posts: 281
Joined: Tue Apr 21, 2009 5:23 pm

Next

Return to General Discussion

Who is online

Users browsing this forum: lukasbob, Yahoo [Bot] and 20 guests