Sublime Forum

Using Bundles from TextMate in Sublime Text 2

#1

Hello,

I was wandering if there is a way to use bundles made for TextMate to be used in Sublime?

Something like that for example: svn.textmate.org/trunk/Review/Bu … .tmbundle/

0 Likes

#2

Textmate snippets and language grammars work in Sublime Text. Just copy them into your packages folder and Sublime Text will notice them.

0 Likes

#3

For what its worth, I have been converting the HTML5 & jQuery Textmate bundles to Sublime packages. You can find them on my Github profile: https://github.com/mrmartineau or more specifically:

HTML5: https://github.com/mrmartineau/HTML5-Sublime-Text-Package
jQuery: https://github.com/mrmartineau/jQuery-Sublime-Text-Package

They are not complete yet as I am still converting all the snippets, but most of the useful ones have been converted - they can be used right now

0 Likes

#4

Good stuff. You should be aware that certain characters are invalid in filenames under Windows and so this will cause problems if someone tries to clone your repos on Windows. Here’s a Ruby script that will clean up the repo and make it Windows compatible. Just run it on your local copy and commit.

gist.github.com/166433

0 Likes

#5

I just grabbed your HTML5 bundle and it’s great. I did run into a bug with the tag though. Kind of goes in an infinite loop if you don’t change the default ID.

0 Likes

#6

What is involved in converting bundles or snippets from textmate to ST2?
I just installed the jquery bundle (not the conversion, but the textmate one) and ST2 finds it, but I am trying to figure out how to make it work in ST2. can’t find any documentation that tells me what changes might need to be made.

0 Likes