Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are some useful TextMate features? [closed]

Tags:

I noticed that many people here use TextMate for coding on OS X. I've recently started using it, and although I like its minimalistic interface, it makes it harder to stumble upon cool features if you don't know what you're looking for.

So, what feature have you found most helpful for coding (mainly in Python)? Are there any third-party bundles I should know about, besides what's included?

like image 731
dF. Avatar asked Aug 29 '08 02:08

dF.


People also ask

How do you run a script in textmate?

In the current document, either press ⌃R with no selection to run the current line as a shell command, or select one or more lines and use ⌃R to run the selection as a shell script (it supports shebang as well).


1 Answers

Don't neglect the 'mate' command line tool. You can use it to pipe output into TextMate, so if you do the following...

diff file1.py file2.py | mate 

...it will not only open in TextMate, but it is smart enough to know that you're looking at a diff and highlight lines on screen.

TextMate's SVN integration is great; it also seems to have bundles for some other version control systems as well.

Add GetBundle to browse the bundle repository. I found the jQuery bundle through it and it's very handy.

As others have mentioned, rolling your own bundle for frequently used snippets is very helpful. If you have some snippets that are specific to a project or framework, you might want to prefix all of them with a common letter to keep the namespace tidy.

like image 186
jlleblanc Avatar answered Sep 27 '22 19:09

jlleblanc