-
Notifications
You must be signed in to change notification settings - Fork 356
Description
It seems that lf -remote "query $id maps" only works properly from within a shell spawned from lf. Whereas if you run a new lf instance, note its PID, and then run lf -remote "query $PID maps" in another window, you get an empty result. The same applies for querying cmds etc.
Looking at the code, this appears to be because gState.data, the map from which readExpr serves query requests, only gets populated/refreshed in app.runShell.
Admittedly, I don't have an actual use-case where I'm missing this functionality. However, it confused me for a bit while I was experimenting with things. And the documentation does not explain this limitation.
Therefore, I'd suggest either updating the docs to call this out, or changing the code to remove this limitation. I'd be happy to help with either approach.