Created
August 18, 2015 17:31
-
-
Save Lanny/802f2493ee789056eab5 to your computer and use it in GitHub Desktop.
A utility to view the output of find in vim's fs explorer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
targ_dir=`mktemp -d /tmp/fine_dir.XXXX` | |
find . -name "*$@*" | while read line; do | |
ln -s "$(pwd)/$line" "$targ_dir" | |
done | |
mvim "$targ_dir" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment