Cookbook

Interesting uses for Filter through Command

Sorting Lines

Command: sort Input: Selection Output: Replace Selection

Convert HTML/Text to HAML

Command: html2haml Input: Document Output: Replace Document

Tidy Java/C/C++ Indentation

Command: astyle --style=[language] -S Input: Document Output: Replace Document

Tidy ERb/GSP/JSP Indentation

Command: tidy -xml -imq --wrap 0 Input: Document Output: Replace Document

Search and Replace

Command: sed 's/[find]/[replace]/g' Input: Document or Selection Output: Replace Document or Replace Selection

Tidy HTML Indentation

Command: tidy -q Input: Document Output: Replace Document

Insert a Random Emoticon

Command: curl -s http://jpw.heroku.com/emo/one Input: None Output: Insert as Text

Show the Time

Command: date Input: None Output: Show as Popup

Preview Markdown

Command: Markdown.pl Input: Document Output: Show as HTML

Post a Gist

(somewhat slow, investigating)

Command: gist Input: Document or Selection Output: Open as URL

Sparkup!

Command: sparkup Input: Selection Output: Replace Selection