From 8521891ea43841be3cdfc671f1bc9c05c7cc4e71 Mon Sep 17 00:00:00 2001 From: Venem Date: Sat, 11 Jun 2022 11:56:07 +0100 Subject: [PATCH] Add symlink creation to lfrc --- .config/lf/lfrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/lf/lfrc b/.config/lf/lfrc index f12d9c75..5e92717b 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -90,6 +90,12 @@ cmd copyto ${{ notify-send "📋 File(s) copied." "File(s) copies to $dest." }} +cmd symlink ${{ + ln -s "$fx" "/tmp/$(basename $fx)" + lf -remote "send toggle /tmp/$(basename $fx)" + lf -remote "send cut" +}} + cmd setbg "$1" cmd bulkrename $vidir @@ -118,6 +124,7 @@ map i push A # before extension map a push A # after extension map B bulkrename map b $setbg $f +map sl symlink map down map up