From 09ca9e57acf3cbc568842b542379ec57a1184b2e Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 17 Jun 2022 12:36:14 -0400 Subject: [PATCH] Fix fzf select in lf (#1126) Without double quotes, fzf-select fails when selecting a file whose path contains whitespace. --- .config/lf/lfrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/lf/lfrc b/.config/lf/lfrc index f12d9c7..315ac3f 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -94,7 +94,7 @@ cmd setbg "$1" cmd bulkrename $vidir # Bindings -map $lf -remote "send $id select '$(fzf)'" +map $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