PathPicker accepts a wide range of input — output from git commands
Facebook PathPicker is a simple command line tool that solves the perpetual problem of selecting files out of bash output. PathPicker will:
- Parse all incoming lines for entries that look like files
- Present the piped input in a convenient selector UI
- Allow you to either:
- Edit the selected files in your favorite
$EDITOR
- Execute an arbitrary command with them
- Edit the selected files in your favorite
It is easiest to understand by watching a simple demo:
Examples
After installing PathPicker, using it is as easy as piping into fpp
. It takes a wide variety of input — try it with all the options below:
git status | fpp
hg status | fpp
git grep "FooBar" | fpp