aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-10-23 01:37:20 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-10-23 01:37:20 +0300
commit959d6c3829d0c1fe8dcc739c4c03ff9b8309ac1d (patch)
tree76f9b069ebb783c860040ae890671dcd73da39e6
parent6df507732946dcf4a4273a936e7bf417ccf8e2b8 (diff)
downloadswayrice-959d6c3829d0c1fe8dcc739c4c03ff9b8309ac1d.tar.gz
swayrice-959d6c3829d0c1fe8dcc739c4c03ff9b8309ac1d.zip
lf make hard link bind/command
-rw-r--r--dotfiles/.config/lf/lfrc7
1 files changed, 7 insertions, 0 deletions
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 <m-1> open