diff --git a/plugins/fzopen b/plugins/fzopen index 52abc87d..57035b5c 100755 --- a/plugins/fzopen +++ b/plugins/fzopen @@ -41,10 +41,14 @@ fi # Check for picker mode if [ "$3" ]; then if [ "$entry" ]; then + case "$entry" in + /*) fullpath="$entry" ;; + *) fullpath="$PWD/$entry" ;; + esac if [ "-" = "$3" ]; then - printf "%s\n" "$entry" + printf "%s\n" "$fullpath" else - printf "%s\n" "$entry" > "$3" + printf "%s\n" "$fullpath" > "$3" fi # Tell `nnn` to clear its internal selection