While, I’ve been collecting useful one-liners for some time, there was always friction to apply them: search my notes, copy, paste, edit, etc.
As of recently, I finally landed on a solution I feel very comfortable with:
- Write templated one-liners (could be longer scripts too), automatically replacing which files to apply them to.
- Wrap the one-liners with a tiny elisp function with a meaningful name.
- From Emacs, I can now easily apply these wonderful one-liners to either the current file or a list of them, without having to remember details nor tweak the commands. Fuzzy searching to apply commands works great.
You can see an ffmpeg example in a recent post https://xenodium.com/seamless-command-line-utils