Pipeprofen provides temporary relief from pipes

view on jetbrains view on github report an issue

Run a bash shell command on the selected lines.
Execute a bash process that pipes the selected lines as if they were an input file, same as stdin, through a custom bash shell command. The output from the process replaces the selection with stderr and stdout. Works with multiple carets by piping each selection region separately into their own process. Also works with no carets.

 


Features
  • Speedily execute any executable in your path, whilst in the IDE
  • Works with multiple carets, 1 caret and no carets
  • Shows stderr to allow failures to be visible
  • Remembers the last command arguments
  • Unlicensed, free public domain source
  • Bug-free on Linux and Windows
  • Actively supported

General usage instructions
Invoke with ctrl-alt-shift-x, or by selecting text and right-click the editor to show the context menu. The menu item is called Pipe selected text to bash. When no lines are selected, use the keyboard shortcut to open the bash argument window.

Note: you must have bash in your environment's PATH.


Being able to run any program in the editor and change the buffer text was heavily inspired by emacs's lisp expressions (eval-last-sexp), (eval-defun) and (eval-expression). This plugin is intended to be a drop-in replacement for the antiquated Shell Process plugin.