From 7e0bb891ab9a02407ecaae1dc32b379f89fd05d7 Mon Sep 17 00:00:00 2001 From: krolyxon Date: Tue, 5 Jul 2022 22:25:48 +0530 Subject: lf movement binds --- .config/lf/lfrc | 40 ++++++++++++---------------------------- 1 file changed, 12 insertions(+), 28 deletions(-) (limited to '.config/lf/lfrc') diff --git a/.config/lf/lfrc b/.config/lf/lfrc index bcebcf5..0cc172a 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -53,40 +53,18 @@ cmd delete ${{ [ $ans = "y" ] && rm -rf -- $fx }} -cmd moveto ${{ - clear; tput cup $(($(tput lines)/3)); tput bold - set -f - clear; echo "Move to where?" - dest="$(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf | sed 's|~|$HOME|')" && - for x in $fx; do - eval mv -iv \"$x\" \"$dest\" - done && - notify-send "🚚 File(s) moved." "File(s) moved to $dest." -}} - -cmd copyto ${{ - clear; tput cup $(($(tput lines)/3)); tput bold - set -f - clear; echo "Copy to where?" - dest="$(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf | sed 's|~|$HOME|')" && - for x in $fx; do - eval cp -ivr \"$x\" \"$dest\" - done && - notify-send "📋 File(s) copied." "File(s) copies to $dest." -}} - cmd genwall "$1" cmd bulkrename $vidir # Bindings map $lf -remote "send $id select \"$(fzf)\"" map J $lf -remote "send $id cd $(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf)" -map gh -map g top map D delete +map p paste +map dd cut +map yy copy +map H top map E extract -map C copyto -map M moveto map push :mkdir map reload map set hidden! @@ -112,5 +90,11 @@ map W $setsid -f $TERMINAL >/dev/null 2>&1 map Y $printf "%s" "$fx" | xclip -selection clipboard -# Source Bookmarks -#source "~/.config/lf/shortcutrc" +# movement +map gd cd ~/dox/ +map gD cd ~/dl/ +map gp cd ~/pix +map gc cd ~/.config +map gr cd ~/code/repos +map gv cd ~/vids/ +map gs cd ~/.local/bin -- cgit v1.2.3