Tente PathPicker .
PathPicker is a simple command line tool that solves the perpetual problem of selecting files out of bash output.
De exemplos :
git status | fpp
grep -r "FooBar" . | fpp
find . -iname "*.js" | fpp
Use a opção -ko
se você quiser voltar para a lista:
-ko, --keep-open keep PathPicker open once a file selection or command is performed. This will loop the program until Ctrl-C is used to terminate the process.
Nota sobre o editor:
The $FPP_EDITOR environment variable can be set to tell PathPicker which editor to open the selected files with. If that variable is not set, $VISUAL and then $EDITOR are used as fallbacks, with "vim" as a last resort.
Atualizar :
Há um recurso não documentado em fpp
: fpp
reconhece a linha números em grep
output. Assim, você pode adicionar um número de linha grep -rn foo . | fpp -ko
e ir para as linhas correspondentes.