reddit / emacs

dwim-shell-command on melpa any minute now (link in comments)

xenodium · 2022-07-24 21:13
xenodium · 2022-07-24 21:16
[https://xenodium.com/dwim-shell-command-on-melpa](https://xenodium.com/dwim-shell-command-on-melpa) ## Brief summary of what the package does Run `M-x` `dwim-shell-command` to execute DWIM shell commands: * Asynchronously. * Using noweb templates. `convert -verbose '<<f>>' '<<fne>>.jpg'` * Automatically inject files (from dired or other buffers) or kill ring. * Process buffer always next in stack (easy to get to). * Manage buffer focus with heuristics (ie. File created in current directory? Take me to it). * Progress bar. * Quick buffer exit. * More reusable history. Easily create your own Emacs utilities via `dwim-shell-command-on-marked-files`. (defun dwim-shell-command-convert-image-to-jpg () "Convert all marked images to jpg(s)." (interactive) (dwim-shell-command-on-marked-files "Convert to jpg" "convert -verbose '<<f>>' '<<fne>>.jpg'" :utils "convert"))
paretoOptimalDev · 2022-07-24 21:43
Something tells me hyperbole lets you do something similar here. For now though, I'll keep using this. Great job!
xenodium · 2022-07-25 06:42
Thank you. Nice to hear it’s working for ya.