From 3bdc9a62c19c2d5a9e5155717120f946967fa64a Mon Sep 17 00:00:00 2001 From: ray Date: Wed, 22 Sep 2021 10:22:42 +0100 Subject: [PATCH] fix paste not working --- lfrc | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/lfrc b/lfrc index 9d03cab..ee2a3d5 100644 --- a/lfrc +++ b/lfrc @@ -115,21 +115,3 @@ cmd thumbs ${{ feh -t -y128 -E128 & 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' -}}