1
0
Fork 0

lf edit command fix

This commit is contained in:
Luca Bilke 2024-02-01 10:08:40 +01:00
parent a42b402162
commit 05715e781e
1 changed files with 5 additions and 6 deletions

View File

@ -23,12 +23,11 @@ cmd pushedit %{{
}}
cmd edit ${{
rifle -c "$XDG_CONFIG_HOME/lf/rifle.conf" -p 0 $fx
# if sh -c "[ -n '\$VIM' ]"; then
# lf -remote "send $id vimopen $fx"
# else
# lf -remote "send $id '\$echo $fx | xargs -or nvim +wa'"
# fi
if sh -c "[ -n \"\$VIM\" ]"; then
lf -remote "send $id vimopen $fx"
else
lf -remote "send $id \$echo \$fx | xargs -or nvim +wa"
fi
}}
cmd open-with ${{