Closed towry closed 1 year ago
Seems I have to explicitly put zstyle ':z4h:' start-tmux no
, now the $TERM variable is not 'tmux-256color' anymore which I think is correct.
I am using below to disable shell integration in nvim terminal:
# .zshrc
if [ -n "$NVIM" ]; then
# disable shell integration
else
# enable
fi
For the fzf display issue, i don't know. what to do, maybe live with it for now. I think it's fzf issue.
I am using below to disable shell integration in nvim terminal:
if [ -n "$NVIM" ]; then # disable else # enable fi
For the fzf display issue, i don't know. what to do, maybe live with it for now. @towry Where does $NVIM come from?
I had the same issue. Thanks for the solution. Btw you can do it with one line:
[[ -z $NVIM ]] && zstyle ':z4h:' term-shell-integration 'yes'
@romkatv I wonder if it's a proper way to solve the issue and it has no drawbacks
This would be a bug in nvim: it's not discarding unrecognized CSI sequences. I cannot reproduce this with nvim v0.4.3 though. Which version are you using?
I've pushed a commit that disables terminal integration in shells that run under nvim. Please run z4h update
, then close all shells, start a new one, and verify that it works.
Just updated z4h and the issue in first picture is gone.
Thanks for verifying.
I have this shell integration option set to "yes", and in the following steps:
You can see mess content:
If i set the option to "no", the mess content is gone, but fzf command history will causing mess content:
This is the output after I selected 'ls' command from the fzf command history completion.