mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Merge pull request #1215 from N-R-K/fzopen_fix
plugin: fzopen: print full path for picker mode
This commit is contained in:
commit
bcae254ff2
|
@ -41,10 +41,14 @@ fi
|
||||||
# Check for picker mode
|
# Check for picker mode
|
||||||
if [ "$3" ]; then
|
if [ "$3" ]; then
|
||||||
if [ "$entry" ]; then
|
if [ "$entry" ]; then
|
||||||
|
case "$entry" in
|
||||||
|
/*) fullpath="$entry" ;;
|
||||||
|
*) fullpath="$PWD/$entry" ;;
|
||||||
|
esac
|
||||||
if [ "-" = "$3" ]; then
|
if [ "-" = "$3" ]; then
|
||||||
printf "%s\n" "$entry"
|
printf "%s\n" "$fullpath"
|
||||||
else
|
else
|
||||||
printf "%s\n" "$entry" > "$3"
|
printf "%s\n" "$fullpath" > "$3"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Tell `nnn` to clear its internal selection
|
# Tell `nnn` to clear its internal selection
|
||||||
|
|
Loading…
Reference in a new issue