Krolyxon
Commit 7e0bb89

Branches

Refs →

dotfiles-x117e0bb89

lf movement binds

Author
krolyxon
Date
2022-07-05 22:25 +0530
Parent
e824a57
Commit
7e0bb891ab9a02407ecaae1dc32b379f89fd05d7

+13 −28

2 files changed

  1. M .config/lf/lfrc +12 −28
  2. M .config/shell/aliasrc +1 −0
M .config/lf/lfrc View
@@ -53,40 +53,18 @@ cmd delete ${{
5353 [ $ans = "y" ] && rm -rf -- $fx
5454 }}
5555
56−cmd moveto ${{
57− clear; tput cup $(($(tput lines)/3)); tput bold
58− set -f
59− clear; echo "Move to where?"
60− dest="$(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf | sed 's|~|$HOME|')" &&
61− for x in $fx; do
62− eval mv -iv \"$x\" \"$dest\"
63− done &&
64− notify-send "🚚 File(s) moved." "File(s) moved to $dest."
65−}}
66−
67−cmd copyto ${{
68− clear; tput cup $(($(tput lines)/3)); tput bold
69− set -f
70− clear; echo "Copy to where?"
71− dest="$(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf | sed 's|~|$HOME|')" &&
72− for x in $fx; do
73− eval cp -ivr \"$x\" \"$dest\"
74− done &&
75− notify-send "📋 File(s) copied." "File(s) copies to $dest."
76−}}
77−
7856 cmd genwall "$1"
7957 cmd bulkrename $vidir
8058
8159 # Bindings
8260 map <c-f> $lf -remote "send $id select \"$(fzf)\""
8361 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)"
84−map gh
85−map g top
8662 map D delete
63+map p paste
64+map dd cut
65+map yy copy
66+map H top
8767 map E extract
88−map C copyto
89−map M moveto
9068 map <c-n> push :mkdir<space>
9169 map <c-r> reload
9270 map <c-s> set hidden!
@@ -112,5 +90,11 @@ map W $setsid -f $TERMINAL >/dev/null 2>&1
11290
11391 map Y $printf "%s" "$fx" | xclip -selection clipboard
11492
115−# Source Bookmarks
116−#source "~/.config/lf/shortcutrc"
93+# movement
94+map gd cd ~/dox/
95+map gD cd ~/dl/
96+map gp cd ~/pix
97+map gc cd ~/.config
98+map gr cd ~/code/repos
99+map gv cd ~/vids/
100+map gs cd ~/.local/bin
M .config/shell/aliasrc View
@@ -13,6 +13,7 @@ alias \
1313 cl='clear' \
1414 dots='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' \
1515 lf="lfub" \
16+ nb="newsboat" \
1617 hst='history 1 -1 | cut -c 8- | sort | uniq | fzf | tr -d '\n' | xclip -sel c'
1718
1819 # Verbosity and settings that you pretty much just always are going to want.