Fix fzf select in lf (#1126)

Without double quotes, fzf-select fails when selecting a file whose path contains whitespace.
This commit is contained in:
Andrew 2022-06-17 12:36:14 -04:00 committed by GitHub
parent bac8a110ec
commit 09ca9e57ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,7 @@ cmd setbg "$1"
cmd bulkrename $vidir
# 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 gh
map g top