From b1d73da2bf8f09bc62aa89ccbb83692e998c8b80 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Fri, 9 Nov 2018 20:06:11 -0800 Subject: [PATCH] Changed dependency from fzf to fzy --- edit.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/edit.sh b/edit.sh index a6d4d25..78528b0 100755 --- a/edit.sh +++ b/edit.sh @@ -2,7 +2,7 @@ # edit - fuzzy find a file and edit it # Dependencies # - fd -# - fzf +# - fzy printHelp() { cat << EOF @@ -30,7 +30,6 @@ editor= declare -a fd_opts fd_opts+=('--hidden') fd_opts+=('--type' 'f') -fd_opts+=('--print0') fd_opts+=('--no-ignore-vcs') while true; do @@ -111,9 +110,9 @@ if [[ -z "${editor:-${EDITOR}}" ]]; then fi if [[ "${dir}" ]]; then - file="$(fd "${fd_opts[@]}" . -- "${dir}" | fzf --read0 --select-1 --exit-0 --no-mouse)" + file="$(fd "${fd_opts[@]}" . -- "${dir}" | fzy)" else - file="$(fd "${fd_opts[@]}" | fzf --read0 --select-1 --exit-0 --no-mouse)" + file="$(fd "${fd_opts[@]}" | fzy)" fi [[ ! "${file}" ]] && exit 1