mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Return the shortcut name for ease of use
This commit is contained in:
parent
66807a6613
commit
948f5ef3d4
@ -52,7 +52,7 @@ cmd moveto ${{
|
|||||||
clear; tput cup $(($(tput lines)/3)); tput bold
|
clear; tput cup $(($(tput lines)/3)); tput bold
|
||||||
set -f
|
set -f
|
||||||
clear; echo "Move to where?"
|
clear; echo "Move to where?"
|
||||||
dest="$(awk '{ gsub(/#.*/, ""); } !/^$/ { print $2 }' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf)" &&
|
dest="$(awk '{ gsub(/#.*/, ""); } !/^$/ { print }' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf | sed "s/.* //")" &&
|
||||||
for x in $fx; do
|
for x in $fx; do
|
||||||
eval mv -iv \"$x\" \"$dest\"
|
eval mv -iv \"$x\" \"$dest\"
|
||||||
done &&
|
done &&
|
||||||
@ -63,7 +63,7 @@ cmd copyto ${{
|
|||||||
clear; tput cup $(($(tput lines)/3)); tput bold
|
clear; tput cup $(($(tput lines)/3)); tput bold
|
||||||
set -f
|
set -f
|
||||||
clear; echo "Copy to where?"
|
clear; echo "Copy to where?"
|
||||||
dest="$(awk '{ gsub(/#.*/, ""); } !/^$/ { print $2 }' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf)" &&
|
dest="$(awk '{ gsub(/#.*/, ""); } !/^$/ { print }' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf | sed "s/.* //")" &&
|
||||||
for x in $fx; do
|
for x in $fx; do
|
||||||
eval cp -ivr \"$x\" \"$dest\"
|
eval cp -ivr \"$x\" \"$dest\"
|
||||||
done &&
|
done &&
|
||||||
@ -75,7 +75,7 @@ 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 $(awk '{ gsub(/#.*/, ""); } !/^$/ { print $2 }' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf | sed "s/.*\$HOME/\$HOME/ ; s/}//" | envsubst)"
|
map J $lf -remote "send $id cd $(awk '{ gsub(/#.*/, ""); } !/^$/ { print }' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf | sed "s/.* // ; s/.*\$HOME/\$HOME/ ; s/}//" | envsubst)"
|
||||||
map gh
|
map gh
|
||||||
map g top
|
map g top
|
||||||
map D delete
|
map D delete
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user