fix paste not working
This commit is contained in:
parent
966946130e
commit
3bdc9a62c1
18
lfrc
18
lfrc
|
@ -115,21 +115,3 @@ cmd thumbs ${{
|
||||||
feh -t -y128 -E128 &
|
feh -t -y128 -E128 &
|
||||||
fi
|
fi
|
||||||
}}
|
}}
|
||||||
|
|
||||||
# TODO test this
|
|
||||||
cmd paste &{{
|
|
||||||
load=$(lf -remote 'load')
|
|
||||||
mode=$(echo "$load" | sed -n '1p')
|
|
||||||
list=$(echo "$load" | sed '1d')
|
|
||||||
if [ $mode = 'copy' ]; then
|
|
||||||
rsync -av --ignore-existing --progress $list . \
|
|
||||||
| stdbuf -i0 -o0 -e0 tr '\r' '\n' \
|
|
||||||
| while read line; do
|
|
||||||
lf -remote "send $id echo $line"
|
|
||||||
done
|
|
||||||
elif [ $mode = 'move' ]; then
|
|
||||||
mv -n $list .
|
|
||||||
fi
|
|
||||||
lf -remote 'send load'
|
|
||||||
lf -remote 'send clear'
|
|
||||||
}}
|
|
||||||
|
|
Loading…
Reference in New Issue