3 ms·
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,
by xenodium 4y ago
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 https://xenodium.com/seamless-command-line-utils
- sbt567 4y agoI'm using navi[0] for this exact purpose and very happy with it. Now it is one of indispensable tool for my workflow [0] https://github.com/denisidoro/navi https://github.com/denisidoro/navi