2021-03-02 02:52:31 +00:00
|
|
|
set drawbox
|
2021-03-02 09:49:01 +00:00
|
|
|
set icons
|
2021-03-02 02:52:31 +00:00
|
|
|
|
2021-06-24 03:17:06 +00:00
|
|
|
cmd mkdir %mkdir "$@"
|
2021-03-02 02:52:31 +00:00
|
|
|
cmd copyfilepath %echo "$f" | xsel -b
|
2021-03-05 03:56:56 +00:00
|
|
|
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'
|
|
|
|
}}
|
2021-06-24 03:17:06 +00:00
|
|
|
cmd e $$EDITOR "$@"
|
2021-07-01 22:51:14 +00:00
|
|
|
cmd setexecutable %chmod +x "$f"
|
2021-06-24 03:17:06 +00:00
|
|
|
|
|
|
|
map Yp copyfilepath
|
|
|
|
map Yn copyfilename
|
2021-03-05 03:56:56 +00:00
|
|
|
map P pasteoverwrite
|
2021-07-01 22:51:14 +00:00
|
|
|
map X setexecutable
|