Aloxaf / fzf-tab

Replace zsh's default completion selection menu with fzf!
MIT License
3.28k stars 94 forks source link

[BUG] ssh+tmux+vnc - menu get displayed in the ssh client #473

Closed pbosab closed 1 week ago

pbosab commented 1 week ago

Describe the bug

connecting through ssh, launching a vnc session from inside tmux, if I open a terminal in the vnc client the window of fzf-tab get displayed in the tmux session of the ssh client. if I go back to the ssh client and "escape" it, I will get the correct display in the vnc client.

I can make sure:

Screenshots

If applicable, add screenshots to help explain your problem. Screenshot 2024-09-26 163241

Environment:

Aloxaf commented 1 week ago

It looks like you are using VNC to connect to local machine.

This is not a bug. tmux sets some environment variables when starts up to make sure nested program (eg, tmux -> zsh -> emacs -> zsh) know it's in tmux environment. If you start a GUI program in tmux, you should unset these variables to prevent the program inside from mistakenly thinking it's still in the tmux.

TMUX= TMUX_PANE= vnc