1
0
Fork 0

lf: fix unquoted expansions

This commit is contained in:
Luca Bilke 2024-11-19 10:26:22 +01:00
commit 2ade28c32e
Signed by: luca
GPG key ID: F6E11C9BAA7C82F5

View file

@ -22,8 +22,8 @@ cmd pushedit %{{
}} }}
cmd open-with ${{ cmd open-with ${{
method=$(rifle -c $XDG_CONFIG_HOME/lf/rifle.conf -l $fx | fzf --header="Choose an application:" | cut -d':' -f1) method=$(rifle -c "$XDG_CONFIG_HOME/lf/rifle.conf" -l $fx | fzf --header="Choose an application:" | cut -d':' -f1)
rifle -c $XDG_CONFIG_HOME/lf/rifle.conf -p $method $fx rifle -c "$XDG_CONFIG_HOME/lf/rifle.conf" -p "$method" $fx
}} }}
cmd trash &{{ cmd trash &{{
@ -135,8 +135,8 @@ cmd fzf ${{
cut -d "$delimiter" -f "$path_field" | cut -d "$delimiter" -f "$path_field" |
tr -d '\n' tr -d '\n'
)" )"
[ -d "$file" ] && lf -remote "send $id cd $file" [ -d "$file" ] && lf -remote "send $id cd '$file'"
[ -f "$file" ] && lf -remote "send $id select $file" [ -f "$file" ] && lf -remote "send $id select '$file'"
return 0 return 0
}} }}