Quick-tip: Textmate's "Filter Through Command"
I just stumbled across the TextMate menu option ”Filter Through Command”. It does exactly what you’d think. Uses the current document, or selected text as input for a command line function. Here’s a 28 second screencast I made to show you how it works.
While there are other ways to do it, ”Filter Through Command” lets you run selected text through a any command-line operation.
Later I used it to update a few Sass stylesheets to the Sass3 syntax with sass-convert --from sass2 --to sass --dasherize. Conveniently, TextMate keeps a history of recent commands, so it’s easy to call up previously used filters.