lf movement binds
This commit is contained in:
parent
e824a57bca
commit
7e0bb891ab
|
|
@ -53,40 +53,18 @@ cmd delete ${{
|
||||||
[ $ans = "y" ] && rm -rf -- $fx
|
[ $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 genwall "$1"
|
||||||
cmd bulkrename $vidir
|
cmd bulkrename $vidir
|
||||||
|
|
||||||
# Bindings
|
# Bindings
|
||||||
map <c-f> $lf -remote "send $id select \"$(fzf)\""
|
map <c-f> $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 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 D delete
|
||||||
|
map p paste
|
||||||
|
map dd cut
|
||||||
|
map yy copy
|
||||||
|
map H top
|
||||||
map E extract
|
map E extract
|
||||||
map C copyto
|
|
||||||
map M moveto
|
|
||||||
map <c-n> push :mkdir<space>
|
map <c-n> push :mkdir<space>
|
||||||
map <c-r> reload
|
map <c-r> reload
|
||||||
map <c-s> set hidden!
|
map <c-s> set hidden!
|
||||||
|
|
@ -112,5 +90,11 @@ map W $setsid -f $TERMINAL >/dev/null 2>&1
|
||||||
|
|
||||||
map Y $printf "%s" "$fx" | xclip -selection clipboard
|
map Y $printf "%s" "$fx" | xclip -selection clipboard
|
||||||
|
|
||||||
# Source Bookmarks
|
# movement
|
||||||
#source "~/.config/lf/shortcutrc"
|
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
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ alias \
|
||||||
cl='clear' \
|
cl='clear' \
|
||||||
dots='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' \
|
dots='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' \
|
||||||
lf="lfub" \
|
lf="lfub" \
|
||||||
|
nb="newsboat" \
|
||||||
hst='history 1 -1 | cut -c 8- | sort | uniq | fzf | tr -d '\n' | xclip -sel c'
|
hst='history 1 -1 | cut -c 8- | sort | uniq | fzf | tr -d '\n' | xclip -sel c'
|
||||||
|
|
||||||
# Verbosity and settings that you pretty much just always are going to want.
|
# Verbosity and settings that you pretty much just always are going to want.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue