Sublime Forum

How do you use Textmate bundles with Sublime?

#1

Is there a tutorial on how to use Textmate bundles in Sublime Text? I tried to drop some textmate snippets into my User folder and SublimeText through out errors regarding the snippets being invalid or something.

0 Likes

#2

Some .tm* files work on Sublime Text, others don’t. There’s no specific porting guide, though.

Snippets in Sublime use the same features as Texmate’s, but are stored in *.sublime-snippet files instead. *.sublime-snippet files are a simplified XML format.

This can probably be of help here:

sublimetext.info/docs/en/extensi … ppets.html
sublimetext.info/docs/en/reference/snippets.html

0 Likes

#3

So no one has written any kind of converter for tmSnippets -> sublimeSnippets? I would have thought that after all this time that someone would have…

0 Likes

#4

ST2 converts them for you when you first launch with a TextMate bundle installed.

Note that in TextMate you could organize where the snippets appeared in the menus using the bundle editor. In ST2 snippets at the top level of the bundle folder will appear at the top level of the bundle’s snippet menu. Put them in subfolders of the main bundle folder to create submenus.

0 Likes