Update drag-and-drop command
This commit is contained in:
parent
198485f6d6
commit
4c714c565e
2
mail.org
2
mail.org
@ -676,7 +676,7 @@ tmpfile=/tmp/rangerpick
|
|||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
ranger --choosefiles $tmpfile && sed -i 's/\s/\\ /g' $tmpfile && echo "$(awk 'BEGIN {printf "%s", "push "} {printf "%s", "<attach-file>"$0"<enter>"}' $tmpfile)" > $tmpfile
|
ranger --choosefiles $tmpfile && sed -i 's/\s/\\ /g' $tmpfile && echo "$(awk 'BEGIN {printf "%s", "push "} {printf "%s", "<attach-file>"$0"<enter>"}' $tmpfile)" > $tmpfile
|
||||||
elif [ $1 == "dragon" ]; then
|
elif [ $1 == "dragon" ]; then
|
||||||
dragon-drag-and-drop --target --print-path --keep > $tmpfile && sed -i 's/\s/\\ /g' $tmpfile && echo "$(awk 'BEGIN {printf "%s", "push "} {printf "%s", "<attach-file>"$0"<enter>"}' $tmpfile)" > $tmpfile
|
dragon --target --print-path --keep > $tmpfile && sed -i 's/\s/\\ /g' $tmpfile && echo "$(awk 'BEGIN {printf "%s", "push "} {printf "%s", "<attach-file>"$0"<enter>"}' $tmpfile)" > $tmpfile
|
||||||
elif [ $1 == "clean" ]; then
|
elif [ $1 == "clean" ]; then
|
||||||
ls $tmpfile
|
ls $tmpfile
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user