Description
Not really sure which side of the zsh/tmux fence this sits on, but wonder if it could be handled here at least.
Note: Normal mode==block cursor, insert mode==bar cursor
I can get the cursor styling working, but if I Escape into Normal mode in one tmux window pane and then switch to another pane that is in insert mode, my cursor styling is overriden and I get a block cursor on the pane that is in insert mode. Or, vice versa if I'm in insert mode and switch to a pane that is in normal mode.
Maybe this is a tmux thing that needs to trigger zle to do something? Or maybe tmux is and it's just not handled in zsh-vim-mode
? Not really sure where to start debugging this. Please feel free to tell me to go ask in tmux/tmux ;)
For testing this is my .zshrc:
HISTFILE="${ZDOTDIR:-$HOME}/.zhistory"
HISTSIZE=290000
SAVEHIST=290000
PS1="READY > "
export MODE_CURSOR_VIINS="#00ff00 blinking bar"
export MODE_CURSOR_REPLACE="$MODE_CURSOR_VIINS #ff0000"
export MODE_CURSOR_VICMD="green block"
export MODE_CURSOR_SEARCH="#ff00ff steady underline"
export MODE_CURSOR_VISUAL="$MODE_CURSOR_VICMD steady bar"
export MODE_CURSOR_VLINE="$MODE_CURSOR_VISUAL #00ffff"
source /Users/kyounger/code/testzsh/zsh-vim-mode/zsh-vim-mode.plugin.zsh