diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2021-09-23 12:40:12 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2021-09-23 12:40:12 -0400 |
| commit | f42cb321f09e44c00213e186f0208abf51088d33 (patch) | |
| tree | 5e5b8f4c6851cc292bccbece377e2fb75853316e /.config/lf/lfrc | |
| parent | c172efd5157c16748801fc32a96cb70638eec4e1 (diff) | |
| download | eibhear-f42cb321f09e44c00213e186f0208abf51088d33.tar.gz eibhear-f42cb321f09e44c00213e186f0208abf51088d33.tar.zst eibhear-f42cb321f09e44c00213e186f0208abf51088d33.zip | |
close #996
Diffstat (limited to '.config/lf/lfrc')
| -rw-r--r-- | .config/lf/lfrc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 7ef819d..ebf6d30 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -52,7 +52,7 @@ cmd moveto ${{ clear; tput cup $(($(tput lines)/3)); tput bold set -f clear; echo "Move to where?" - dest="$(awk '{ gsub(/#.*/, ""); } !/^$/ { print $2 }' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf)" && + dest="$(sed -e '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 && @@ -63,7 +63,7 @@ cmd copyto ${{ clear; tput cup $(($(tput lines)/3)); tput bold set -f clear; echo "Copy to where?" - dest="$(awk '{ gsub(/#.*/, ""); } !/^$/ { print $2 }' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf)" && + dest="$(sed -e '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 && @@ -75,7 +75,7 @@ cmd bulkrename $vidir # Bindings 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/\${.*-// ; s/}//" | envsubst)" +map J $lf -remote "send $id cd $(sed -e 's/#.*//' -e '/^$/d' -e 's/^\S*\s*//' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf)" map gh map g top map D delete |
