3 ![demo](https://raw.github.com/edi9999/i/master/demo.gif)
5 PathExtractor is a command line tool that extracts a list of files/paths from stdin.
7 Advantages over [fpp](https://github.com/facebook/PathPicker):
9 * It does only one thing : more unixy
10 * You can use it with any fuzzy finder, such as [fzf](https://github.com/junegunn/fzf),[peco](https://github.com/peco/peco),[percol](https://github.com/mooz/percol),[pick](https://github.com/thoughtbot/pick),[selecta](https://github.com/garybernhardt/selecta/)
11 * It doesn't wait for stdin to be finished to output the paths
13 * It is much smaller (easily understandable)
14 * You can also use it without a fuzzy finder for programmatic usage
16 For example, you could write:
20 to get a list of the files that were added/changed, without all the formating
22 One of the most common usage is to create an alias that will automatically run :
24 `pe` + a command line fuzzy finder such as fzf + an action such as opening that file in your favorite editor.
26 For example, using `zsh` , I have as an alias:
28 alias -g P='| pe | fzf | read filename; [ ! -z $filename ] && vim $filename'
32 bind '"PP": "| pe | fzf | read filename; [ ! -z $filename ] && vim $filename"'
42 to quickly open one of the changed files in vim
48 # Copy selected path to clipboard
49 alias -g C='| pe | fzf | read filename; [ ! -z $filename ] && echo -n $filename | xclip -selection c'
53 bind '"CC": "| pe | fzf | read filename; [ ! -z $filename ] && echo -n $filename | xclip -selection c"'
58 git clone # in your go path