pipe

An Alfred Workflow


Short Description

Transform the selected text or clipboard contents by passing it through an arbitrary shell one-liner

Last Updated

20 Mar 2022

Compatibility

Yosemite
(10.10)
Mavericks
(10.9)
Mountain Lion
(10.8)
Lion
(10.7)
Snow Leopard
(10.6)
Yes Yes Yes Yes Yes
 

Version

1.2
 

Bundle ID

net.isometry.alfred.pipe
 

Author

(Optional) assign hotkeys for the two Hotkey handlers in the workflow. I recommend Cmd+Shift+| and Cmd+Ctrl+\, respectively.

Two actions are available, both taking an arbitrarily complex shell pipe as their argument:

  • triggered by the first hotkey or by the | or pipe keywords, will transform the clipboard in-place by passing its contents through the pipe given as argument.
  • triggered by the second hotkey, will transform the currently selected text in-place by passing its contents through the pipe given as argument.

A number of built-in pipelines are included, and custom aliases can also be defined with the following syntax:

| alias NAME=PIPE | LINE@@ | alias tac=sed '1!G;h;$!d'@@