dotfiles/cli/lf/lfrc

24 lines
488 B
Plaintext
Raw Normal View History

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
cmd mkdir %mkdir "$@"
cmd copyfilepath %echo "$f" | xsel -b
map Yp copyfilepath
cmd copyfilename %basename "$f" | xsel -b
2021-03-02 02:52:31 +00:00
map Yn copyfilename
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'
}}
map P pasteoverwrite