I was thinking a menu item called “pipe selected text through shell command and replace with its output” (when text is selected), or “pipe all text through shell command and replace with its output” (if no text is selected). Of course the wording must be more concise; I’m just trying to show you what I’m thinking.
When the menu item is chosen, a dialog box pops up where you type in your shell command. Then buttons “run” or “cancel” would be at the bottom.
But this really needs to be thought through. VIM supports all kinds of shell command use. Which features will the new package support?
Here are a couple of use cases:
You can pipe only the selected text through the shell command. VIM example: sort only a subset of the file via first using visual mode to select text, then typing “:!sort” (don’t type the “%” character as in the example above)
You can also just run a shell command and insert its output at the cursor (there is no text piped into the shell command). VIM example “:r!ls” Inserts the current directory listing into the document at the cursor