#path #ea #command #editor #output #command-line #alias

bin+lib ea-command

Editor Alias: making paths in command line tools actionable

3 unstable releases

0.2.1 Jun 27, 2022
0.2.0 May 27, 2022
0.1.0 Apr 30, 2022

#10 in #ea

MIT license

32KB
662 lines

ea: Making CLI Outputs Actionable

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 / OS Command
Cargo cargo install ea-command
Homebrew brew install dduan/formulae/ea
AUR / Arch yay -S ea-command
Nix flake Use 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.

Dependencies

~4.5–6.5MB
~112K SLoC