Is it possible to execute a screen command when the user changes the window?
I have my current working directory in my hardstatus by using zsh's precmd() feature to change screen's working directory to zsh's working directory when a command runs. But since zsh doesn't run a command when the window changes, the working directory in my hardstatus doesn't update to the zsh instance in the new window (obviously).
My thinking is that if I can get screen to execute a :chdir when the window changes, I can have zsh storing its working directory somewhere or something along those lines and have screen read it and change to that when the window changes. (There's likely a more efficient solution, that's just what I came up with off the top of my head.)