Pipe Dream
Pipe Dream plugin for Sublime Text 2 - Pipes selected text through shell commands
Details
Installs
- Total 146
- Win 40
- Mac 75
- Linux 31
Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | Nov 22 | Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Pipe Dream plugin for Sublime Text
Pipes selected text through shell commands
Sublime Text
About
This is a Sublime Text plugin, allowing you to pipe selected text (multiple regions ok) or the buffer contents through arbitrary shell commands.
Installation
Package Control -> Install Package -> Pipe Dream
Usage
Either select a region (or regions) to operate on, or the plugin will use all the text in the window.
Goto: Tools -> Command Palette (Cmd+Shift+P
or Ctrl+Shift+P
) and type any of the commands…
Windows and Linux
This plugin has not been tested on these platforms, but I expect it to work, I would appreciate if someone could let me know if it does, or if there are any issues
Commands
These commands are built in, and just to start you off. The idea is that you can easily define your own Pipe Dreams by editing the keymap files, or the commands file.
The keyboard shortcuts set by default, but can be edited easily in the relevant OS's keymap file.
- Pipe Dream: Beautify JavaScript (uglifyjs)
- keys:
ctrl+alt+a b
- type:
text_replace
- cmds:
uglifyjs -b --comments all
- keys:
- Pipe Dream: Minify JavaScript (uglifyjs)
- keys:
ctrl+alt+a u
- type:
text_replace
- cmds:
uglifyjs
- keys:
- Pipe Dream: Execute JavaScript
- keys:
ctrl+alt+a x j
- type:
console_log
- cmds:
node
- keys:
Customize
The Sublime-Pipe-Dream.sublime-commands
file has some pre-defined commands, but you are strongly encouraged to make your own, and share them by adding an issue with your dreams.
Oh no! command not found…
If you get an error sh: node: command not found
or similar, maybe you don't have node
(or similar) in the right path. Try setting the absolute path to node in User/Sublime-Pipe-Dream.sublime-settings
.
This means from:
"PATH": "/usr/sbin:/sbin:/usr/local/bin:"
change to:
"PATH": "/usr/sbin:/sbin:/usr/local/bin:/path/to/node/folder:"
Have fun!
Oh yeah!
Big thanks to Victor Porof for the original plugin I adapted: https://github.com/victorporof/Sublime-HTMLPrettify