grep and do something

often i am looking at a bunch of files (think grep, git status),
and then run a command on one of the files.

normally i reach over to the mouse, select and copy the filename, type
in my command and paste. there is definitely some way of accomplishing this
without having to mouse around. however, the list of things i know
in 2016 look like this:

☐ how to use my terminal

☑ cobbling together bash scripts

so, here’s a script! it works with ag, a grep like tool, and then filters
the results with selecta, a great fuzzy text searching tool.