set cleaner ~/.config/lf/cleaner
set previewer ~/.config/lf/preview
set shell bash
set shellopts '-eu'
set ifs "\n"
cmd quit-and-cd &{{
pwd > $LF_CD_FILE
notify-send "quit-and-cd" "$LF_CD_FILE\n$(cat $LF_CD_FILE)"
lf -remote "send $id quit"
}}
map Q quit-and-cd
I was trying to make the lfrun work with quit-on-cd which mentions a trick to cd to the current directory when quitting.
But for some reason its not working as expected.
If I run regular lf it exits and cds to expected directory but when I do lfrun it doesn't
Minimal
~/.config/lf/lfrcModified
~/.local/bin/lfrun