From 20e89413859412e5c2bd475f11b4d3c320213578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Tue, 20 Dec 2022 00:42:22 +0300 Subject: lf: soft link key bind --- dotfiles/.config/lf/lfrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dotfiles/.config/lf/lfrc b/dotfiles/.config/lf/lfrc index a3a9b43..c6034f9 100644 --- a/dotfiles/.config/lf/lfrc +++ b/dotfiles/.config/lf/lfrc @@ -89,6 +89,12 @@ cmd hard_link %{{ ln $list . }} +cmd soft_link %{{ + load=$(cat ~/.local/share/lf/files) + list=$(echo "$load" | sed '1d') + ln -s $list . +}} + # Bindings map A rename map c @@ -112,6 +118,7 @@ map W $setsid $TERMINAL > /dev/null 2>&1 & # open new terminal window map Y :yank-path map L $LESSOPEN='| ~/.local/bin/scope %s' less -r $f # open file preview in pager map P hard_link +map soft_link # Mouse bindings map open -- cgit v1.2.3