ea: Making CLI Outputs Actionable

May 14, 2022 ยท View on GitHub

ea remembers file paths from CLI output for later use.

Intro

CLI programs like find, rg, clang etc, print out file paths (and line/columns). ea lets you act on them. Here's how:

Aliasing In Action

By running your command through ea, each path in its output get marked with a number in the front. This number can be used to retrieve its corresponding path later for your purposes. Combined with some shell configurations, this can provide a powerful experience.

Install

Via a package manager

ea is available in the following package managers.

Manager / OSCommand
Cargocargo install ea-command
Homebrewbrew install dduan/formulae/ea
AUR / Archyay -S ea-command
Nix flakeUse github:dduan/ea

Pre-built executable

Choose an pre-built executable from the release page that fits your platform to download. Unpack it somewhere you'd like to run it from.

Documentation

Credits

ea is inspired by keith/tag, which was inspired by aykamko/tag.

LICENSE

See LICENSE.txt.