# PathExtractor (pe)
-![demo](raw.github.com/edi9999/i/master/demo.gif)
+![demo](https://raw.github.com/edi9999/i/master/demo.gif)
PathExtractor is a command line tool that extracts a list of files/paths from stdin.
With `bash`:
- bind '"PP": "| pe | fzf | read filename; [ ! -z $filename ] && vim $filename"'
+ bind '"PP": "| pe | uniq | fzf | while read filename; do [ ! -z $filename ] && </dev/tty vim $filename; done\n'
So that If I run
With bash:
- bind '"CC": "| pe | fzf | read filename; [ ! -z $filename ] && echo -n $filename | xclip -selection c"'
+ bind '"CC": "| pe | fzf | read filename; [ ! -z $filename ] && echo -n $filename | xclip -selection c\n"'
# Installation
```
-git clone # in your go path
+go get github.com/edi9999/path-extractor/path-extractor
+```
-go test
+You will have the `path-extractor` in your `$GOPATH/bin` directory which you can rename or alias to `pe`
-go build
+# Binaries
-go install
-```
+They are no binaries for now (you have to build it yourself), but one idea would be to use [goxc](https://github.com/laher/goxc) to compile it on multiple platforms