christoomey / vim-tmux-navigator

Seamless navigation between tmux panes and vim splits
MIT License
5.07k stars 319 forks source link

Refresh tmux client when leaving Vim? #345

Closed joshfrench closed 1 year ago

joshfrench commented 1 year ago

To keep my status bar up to date, I bind my motion keys to something like select-pane -L; refresh-client -S. This works when navigating into a Vim pane, but obviously not when leaving one. Is there a way to hook into the Tmux command to append the refresh call?

joshfrench commented 1 year ago

I can just do this where the bindings are declared for both arms of the is_vim check, nevermind :)