Skip to content

Instantly share code, notes, and snippets.

@Lanny
Created August 18, 2015 17:31
Show Gist options
  • Save Lanny/802f2493ee789056eab5 to your computer and use it in GitHub Desktop.
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
#!/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