map to script suddenly not working
As described above : map gF setfilterarg also have for same script because of problem, added: map g8 setfilterarg in lfrc map gF setfilterarg cmd setfilterarg ${{ echo "setFilter --> " read ft lf -remote "send $id setfilter $ft" }} suddenly not working!? works great, many times, and then never works again!?
I do not understand the issue. setfilter works as I would expect it to work (like you used it from remote). As I understand it, setfilter just takes the argument and then applies it.
map gF filter looks like it is doing the same thing as your command as it is starting the prompt.
I would recommend you check if you have more than one lfrc, and make sure all your functions are the same in all config files. I have had similar issues in the past (things stop working from seemingly nowhere) and some of those issues was due to conflicting config files. Compare your ~/.config/lf/lfrc files for all users and /etc/lf/lfrc, make sure your functions is stated the same way in all of them.
Can't reproduce, the following example works for me:
map f %{{
printf "setfilter: "
read pattern
lf -remote "send $id setfilter '$pattern'"
}}
Though you are probably better off just using filter like below:
map f filter