From 06b28b420630701683bfcdd2173218108ff7ea65 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Tue, 9 Aug 2022 18:51:10 +0200 Subject: [PATCH] stop using rsync for pasting --- .config/lf/lfrc | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 06e5bcb53..15df52800 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -133,23 +133,23 @@ cmd on-quit ${{ printf "\033]0; $DIR\007" > /dev/tty }} -cmd paste &{{ - set -- $(cat ~/.local/share/lf/files) - mode="$1" - shift - case "$mode" in - copy) - rsync -av --ignore-existing --progress -- "$@" . | - stdbuf -i0 -o0 -e0 tr '\r' '\n' | - while IFS= read -r line; do - lf -remote "send $id echo $line" - done - ;; - move) mv -n -- "$@" .;; - esac - rm ~/.local/share/lf/files - lf -remote "send clear" -}} +# cmd paste &{{ +# set -- $(cat ~/.local/share/lf/files) +# mode="$1" +# shift +# case "$mode" in +# copy) +# rsync -av --ignore-existing --progress -- "$@" . | +# stdbuf -i0 -o0 -e0 tr '\r' '\n' | +# while IFS= read -r line; do +# lf -remote "send $id echo $line" +# done +# ;; +# move) mv -n -- "$@" .;; +# esac +# rm ~/.local/share/lf/files +# lf -remote "send clear" +# }} cmd share $curl -F"file=@$fx" https://0x0.snaile.de | xclip -r -selection c