#!/usr/bin/env bash
###################################################################
#
#	File    : filefinder
#	Author  : adb <adb>
#	Created : 24-03-04
#
###################################################################
#
if [ "$1" == "" ] ; then exit 0; fi

RESULT=$(find -iname "*$1*" | fzf --prompt "Edit File : ")

if [ -z "$RESULT" ]; then exit 0; fi

$EDITOR $RESULT
