TextMate parking lot

I can tell I’ll be spending a lot of the next few days exploring TextMate. In the interest of efficiency, I’ll park all my preliminary notes and “gee whiz” stuff in this post. I may do a fuller review/intro later, but I want to share what I’m learning since there’s so much interest in this app.

[A plea: Let’s please keep the Hatfield and McCoy stuff over in the Google Group. I know, I know. “Vim is better” and “emacs is better” and “cuneiform scales better” and “BBEdit saved my baby from a man with a big knife,” but please don’t carp here. If you (don’t care about|hate|want to destroy all traces of) TextMate, just move to another post or start your own thread on your site, cool? Cool.]

On with the motley!

update: added links to other folks’ interesting TextMate posts.

Cool stuff

Pipe web previews through a script of your choice

As with many other text editors you can preview how text will look as a web page from within the app. TextMate allows you to optionally choose a script on your Mac through which the content is piped before visual preview. I’m thrilled that the default is Markdown—I maintain all my text files in Markdown and now I don’t have to do a lot of keyboard gymnastics to see what it will like when it’s parsed to HTML

Create powerful snippets with tab-able variables

TextMate allows you to create “snippets,” which are abbreviated strings of text that can be triggered to “explode” into much longer strings of text with a simple TAB command.

I like how you can define variables in the exploded string and then hit TAB to move from one place to another. As an example here’s a snippet I made to pick you guys’ pockets through Amazon links.

When I want to create a link to a book on Amazon, I type amzn and then TAB and this gets typed:

Those dollar signs and numbers are telling TextMate that these are the three spots where I’ll want to add or edit text each time this snippet gets exploded.

The smart part is that TextMate automatically places the cursor at the point of the first variable (“$1”) so I can just start typing (or paste in) the ASIN for the book. Then, I hit TAB and the cursor moves to the next variable (“$2”) where I start typing the TITLE tag, then I hit TAB again for $3 (the link text that's shown on the page) and so on.

I will use the crap out of snippets.

Coming soon

Setting some basic variables

Questions, Requests & Gripes

Question: Is a Macro the most efficient way to pipe results from a shell activity (via “Filter Through Command”)?

Feature Request: I’d love it if there were a single page with pointers to contributed snippets, macros, and bundles. Also a support/community forum would be helpful

Feature Request: If I have a document open in a project and “open” it from the Finder, I don’t want a new window to launch (bring it to the front in its project window)

Feature Request: Would like to be able to drag text onto document icons and have it append

Feature Request: (More like LazyWeb) Anybody want to take a crack at a syntax coloring for Markdown?

Gripe: Why no “Print” functionality?

Gripe: I miss “I-Search” - A TextMate window apparently is not a “NSTextView” (whatever that means) so I-Search no worky. There’s regexp everywhere so I should probably not sweat it, but I-Search (as well as fiwt) have become de rigeur, muscle memory utilities for me. I’d definitely love to see TM line up with other Cocoa apps on this one.

I love so much about TextMate, but I miss the "open from FTP" and the "browse FTP" components of BBEdit. Anyone know whether TextMate will have this kind of functionality in the future?

I know that I can create a development server on my machine and then upload finished files to a primary server, but even then, there are bound to be problems. BBEdit allows me to poke my nose into the files, change them at a rapid clip, double-check them (live) to be sure everything is as okay as I think it is, and then get out before I do any serious damage. I'm not sure I can live without that functionality.

43 Folders is powered by Drupal, which rules. The site was designed and made wonderful by the astounding Chris Glass. Ben Durbin is the sine qua non and our personal consigliere. 43f’s web hosting is sponsored by A2.