TextMate Home
Bundles | Themes | SVN | Plugins
TextMate2
Using rmate
http://erniemiller.org/2011/12/12/textmate-2-rmate-awesome/
How to Pimp TextMate
http://www.sideburns.eu/2010/02/25/how-I-pimped-my-textmate.html
Fonts for Textmate/Programming
http://hivelogic.com/articles/top-10-programming-fonts
Download the Inconsolata font file and remove the .txt extension to install. (Open Type Format)
Alternative GUI's
http://wiki.macromates.com/Main/AlternativeGUIs
Faster Project search in TextMate
http://somethinglearned.com/articles/2008/06/03/ack-tmbundle-a-faster-find-in-project-for-textmate
Textile 2 PDF
Found here http://blog.toolshed.com/2008/01/textile-2-pdf.html
Here’s a quick and easy way to generate a decent looking PDF from some simple Textile markup, using TextMate.
- First, just type up your content in TextMate, using Textile mode. You’ll get syntax highlighting, live spellcheck, all the usual goodies.
- Next, hit the hot key for Preview (Control-Option-Apple-P)
- From this window, just print to PDF.
Voilà.
You can always add images and perhaps some CSS to tart it up a bit if you like.
It’s light, it’s quick, it’s easy, and it’s plain text—so you can put it under version control with all the rest of your quick memos, project documentation, and such. Right?
Getting into TextMate
http://blog.macromates.com/2007/getting-into-textmate/
http://projects.serenity.de/textmate/tutorials/basics/#understandingtextmate
http://thinkvitamin.com/code/the-hidden-magic-in-textmate/
http://mashable.com/2010/12/23/textmate-guide/
http://screencasts.textmate.org/html_text_transformations.mov
Some Useful Shortcuts
redo ⇧⌘Z——-not ⌘Y
paste previous ⇧⌘V
duplicate line / selection ⌃⇧D
select word ⌃W
select enclosing brackets ⇧⌘B
select current scope ⌃⌥B
find next ⌘G
use selection for find ⌘E
use selection for replace ⇧⌘E
jump to selection ⌘J
spelling ⌘:
bigger / smaller font ⌘+ and ⌘-
fold current block F1
convert to uppercase ⌃U
move line up / down ⌃⌘↑ and ⌃⌘↓
shift left ⌥⇥ or ⌘[
edit each line in selection ⌥⌘A
indent line ⌥⌘[
go to file ⌘T
go to symbol ⇧⌘T
Some more shortcuts
found here: http://paulsturgess.co.uk/articles/show/69-some-handy-shortcuts-for-textmate-vim-and-the-command-line
These are probably my most used shortcuts:
Textmate
⌃⇧> - ctrl+shift+> = open and close erb tags <% = %>
⌥⌘] - alt+command+] = auto indent highlighted code
⌃⇧w - ctrl+shift+w = auto put html tags around highlighted code
⌥⌘> - alt+command+> = auto close tag
⌃⌘w - ctrl+command+w = close all open tabs
⌥⌘a - alt+command+a = type on the end of multiple lines of highlighted code
VIM
o - is new line
d, shift g - clears the file (d is delete and capital g is bottom of the file)
:set number - turn on line numbers
18, shift g - goes to line 18
dd - deletes a line
Command line
⌃r - ctrl+r - searches through recent commands (repeat to keep searching)
⌃a - ctrl+a - beginning of the line
⌃e - ctrl+e - end of line
MORE
1. http://www.pragprog.com/magazines/2009-10/textmate-tricks
2. http://wiki.macromates.com/Main/Howtos#AddCosts
3. http://szeryf.wordpress.com/2010/02/15/textmate-shortcuts-you-should-be-using/