Version 2.4.2 of package Shell-Command+ has just been released in GNU ELPA.
You can now find it in M-x list-packages RET.
Shell-Command+ describes itself as:
=========================
An extended shell-command
=========================
More at https://elpa.gnu.org/packages/shell-command+.html
## Summary:
`shell-command+' is a `shell-command' substitute, that extends the
regular Emacs command with several features. After installed,
configure the package as follows:
(global-set-key (kbd "M-!") #'shell-command+)
A few examples of what `shell-command+' can do:
* Count all lines in a buffer, and display the result in the
minibuffer:
> wc -l
* Replace the current region (or buffer in no region is selected)
with a directory listing of the parent directory.
.. < ls -l
* Delete all instances of the charachters a, b, c, ..., z, in the
selected region (or buffer, if no region was selected).
| tr -d a-z
* Open a man-page using Emacs default man page viewer.
`shell-command+' can be extended to use custom Elisp handlers via
as specified in `shell-command+-substitute-alist'.
## Recent NEWS:
Version 2.4.0 (???)
- Allow adding or removing features using
`shell-command+-features'.
- Add `shell-command+-default-region' user option.
- Remove `shell-command+-use-eshell'.
- Deprecate `shell-command+-enable-file-substitution'.
- Minor bug fixes and stability improvements.
Thanks to Visuwesh for many productive discussions on the mailing
list:
- https://lists.sr.ht/~pkal/public-inbox/%3C87czduxwt4.fsf%40gmail.com%3E
- https://lists.sr.ht/~pkal/public-inbox/%3C878roixwds.fsf%40gmail.com%3E
- https://lists.sr.ht/~pkal/public-inbox/%3C87edxmakqq.fsf%40gmail.com%3E