24 lines
507 B
Plaintext
24 lines
507 B
Plaintext
set drawbox
|
|
set icons
|
|
|
|
cmd mkdir %mkdir "$@"
|
|
cmd copyfilepath %echo "$f" | xsel -b
|
|
cmd copyfilename %basename "$f" | xsel -b
|
|
cmd pasteoverwrite %{{
|
|
load=$(lf -remote 'load')
|
|
mode=$(echo "$load" | sed -n '1p')
|
|
list=$(echo "$load" | sed '1d')
|
|
if [ $mode = 'copy' ]; then
|
|
cp -R $list .
|
|
elif [ $mode = 'move' ]; then
|
|
mv $list .
|
|
fi
|
|
lf -remote 'send load'
|
|
lf -remote 'send clear'
|
|
}}
|
|
cmd e $$EDITOR "$@"
|
|
|
|
map Yp copyfilepath
|
|
map Yn copyfilename
|
|
map P pasteoverwrite
|