diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-12-20 00:42:22 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-12-20 00:42:22 +0300 |
commit | 20e89413859412e5c2bd475f11b4d3c320213578 (patch) | |
tree | a45a49d142cb51e84bab4f0f1921be5f86d66414 | |
parent | 16971f5221dfa1b8154b9537432985ad2d43b659 (diff) | |
download | swayrice-20e89413859412e5c2bd475f11b4d3c320213578.tar.gz swayrice-20e89413859412e5c2bd475f11b4d3c320213578.zip |
lf: soft link key bind
-rw-r--r-- | dotfiles/.config/lf/lfrc | 7 |
1 files changed, 7 insertions, 0 deletions
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 <a-p> soft_link # Mouse bindings map <m-1> open |