stop using rsync for pasting
This commit is contained in:
parent
e772161cbb
commit
06b28b4206
|
@ -133,23 +133,23 @@ cmd on-quit ${{
|
||||||
printf "\033]0; $DIR\007" > /dev/tty
|
printf "\033]0; $DIR\007" > /dev/tty
|
||||||
}}
|
}}
|
||||||
|
|
||||||
cmd paste &{{
|
# cmd paste &{{
|
||||||
set -- $(cat ~/.local/share/lf/files)
|
# set -- $(cat ~/.local/share/lf/files)
|
||||||
mode="$1"
|
# mode="$1"
|
||||||
shift
|
# shift
|
||||||
case "$mode" in
|
# case "$mode" in
|
||||||
copy)
|
# copy)
|
||||||
rsync -av --ignore-existing --progress -- "$@" . |
|
# rsync -av --ignore-existing --progress -- "$@" . |
|
||||||
stdbuf -i0 -o0 -e0 tr '\r' '\n' |
|
# stdbuf -i0 -o0 -e0 tr '\r' '\n' |
|
||||||
while IFS= read -r line; do
|
# while IFS= read -r line; do
|
||||||
lf -remote "send $id echo $line"
|
# lf -remote "send $id echo $line"
|
||||||
done
|
# done
|
||||||
;;
|
# ;;
|
||||||
move) mv -n -- "$@" .;;
|
# move) mv -n -- "$@" .;;
|
||||||
esac
|
# esac
|
||||||
rm ~/.local/share/lf/files
|
# rm ~/.local/share/lf/files
|
||||||
lf -remote "send clear"
|
# lf -remote "send clear"
|
||||||
}}
|
# }}
|
||||||
|
|
||||||
cmd share $curl -F"file=@$fx" https://0x0.snaile.de | xclip -r -selection c
|
cmd share $curl -F"file=@$fx" https://0x0.snaile.de | xclip -r -selection c
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue