From 959d6c3829d0c1fe8dcc739c4c03ff9b8309ac1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Sun, 23 Oct 2022 01:37:20 +0300 Subject: lf make hard link bind/command --- dotfiles/.config/lf/lfrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dotfiles/.config/lf/lfrc b/dotfiles/.config/lf/lfrc index 595563e..a3a9b43 100644 --- a/dotfiles/.config/lf/lfrc +++ b/dotfiles/.config/lf/lfrc @@ -83,6 +83,12 @@ cmd yank-path &printf '%s' "$fx" | wl-copy cmd open &mimeo $fx +cmd hard_link %{{ + load=$(cat ~/.local/share/lf/files) + list=$(echo "$load" | sed '1d') + ln $list . +}} + # Bindings map A rename map c @@ -105,6 +111,7 @@ map T :dragon_drop 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 # Mouse bindings map open -- cgit v1.2.3