Skip to content

Instantly share code, notes, and snippets.

@jefftriplett
jefftriplett / filter_through_command.py
Created September 29, 2011 19:39
Sublime Text 2: "Filter Through Command" plugin
# saved from: http://pastie.org/private/bclbdgxzbkb1gs2jfqzehg
import sublime
import sublimeplugin
import subprocess
class RunExternalCommand(sublimeplugin.TextCommand):
"""
Runs an external command with the selected text,
which will then be replaced by the command output.