1
0
Fork 0

lf: fix unquoted expansions

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

View file

@ -22,8 +22,8 @@ cmd pushedit %{{
}}
cmd open-with ${{
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
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
}}
cmd trash &{{
@ -135,8 +135,8 @@ cmd fzf ${{
cut -d "$delimiter" -f "$path_field" |
tr -d '\n'
)"
[ -d "$file" ] && lf -remote "send $id cd $file"
[ -f "$file" ] && lf -remote "send $id select $file"
[ -d "$file" ] && lf -remote "send $id cd '$file'"
[ -f "$file" ] && lf -remote "send $id select '$file'"
return 0
}}