vim-tmux-navigator icon indicating copy to clipboard operation
vim-tmux-navigator copied to clipboard

Does not work anymore with tmux 3.2

Open tklepzig opened this issue 3 years ago • 13 comments

It seems with tmux 3.2 jumping out of vim to another tmux pane does not work anymore. Navigating from tmux to vim still works, but not the other way around, simply nothing happens.

tmux: 3.2 vim: 8.2

tklepzig avatar May 13 '21 13:05 tklepzig

Same here.

tmux: 3.2 neovim: v0.4.4

rollue avatar May 14 '21 01:05 rollue

Any errors, or does it just fail to navigate? Also, can you check on the questions in https://github.com/christoomey/vim-tmux-navigator#vim---tmux-doesnt-work?

christoomey avatar May 15 '21 00:05 christoomey

The :TmuxNavigatorProcessList gives me

Ss   -zsh
S+   vim

Luckily, I ran Mislav's original external script as described here at https://github.com/christoomey/vim-tmux-navigator#it-still-doesnt-work, it started working again. Thanks for the advice @christoomey

@tklepzig You should try this too.

rollue avatar May 15 '21 02:05 rollue

The :TmuxNavigatorProcessList gives me

Ss   -zsh
S+   vim
S+   /Users/me/.asdf/installs/tmux/3.2/bin/tmux

I already hacked a bit with the tmux bindings and when the $is_vim check is called via an external script, everything works, maybe that's also the reason why Mislav's original external script works. I'm using another tmux related plugin, vimux, which also does not work anymore. It seems there are some breaking changes in version 3.2 of tmux, but I can't find a good candidate in their changelog.

tklepzig avatar May 15 '21 10:05 tklepzig

Interesting that Mislav's script works, but the plugin doesn't. That original script used tmux's pane_current_command, but this plugin moved off that a few years back to attempt to handle a few edge cases. I'll try to do some more research into this soon, but just wanted to note that distinction in case it points anyone reading this in the right direction.

christoomey avatar May 15 '21 14:05 christoomey

Does not work with nvim (0.5.0), but with vim (8.2) on the same machine.

ds82 avatar Jul 28 '21 14:07 ds82

Same problem for me:

Tmux: 3.2a nvim: 0.6.1

Output of TmuxNavigatorProcessList:

Ss+  /bin/zsh (figterm)

--edit

The (figterm) kinda raised a flag with me, as it turns out, I have Fig installed and it was messing up the vim detection. Removed that app and everything is back in working order.

jvanbaarsen avatar Jan 04 '22 18:01 jvanbaarsen

Same issue here. Using:

  • 2019 (Intel) MacBook Pro
  • iTerm2 (Build 3.4.15)
  • tmux 3.2a
  • NVIM v0.6.1

Output of TmuxNavigatorProcessList:

Ss   -zsh
S+   nvim

Two things potentially worth noting:

  1. Mislav's original script did not work for me
  2. I have another machine running Arch (btw), and this plugin works flawlessly

More than willing to start debugging further, just not sure where to start.

ZachAttackMLR avatar Mar 10 '22 16:03 ZachAttackMLR

I'm experiencing the same issue, too. And :TmuxNavigatorProcessList doesn't output anything.

johnnynia avatar Mar 26 '22 00:03 johnnynia

I'm experiencing the same issue, too. And :TmuxNavigatorProcessList doesn't output anything.

Just realized that (using homebrew) after migrating to Apple silicon I've had to change

set shell=/opt/local/bin/zsh

to

set shell=/opt/homebrew/bin/zsh

So my problem was not related to any tmux versions. Just wanted to provide an update in case of someone struggling with the same issue. :)

johnnynia avatar Mar 31 '22 19:03 johnnynia

@johnnynia just to clarify, you changed that in your tmux configuration file, correct?

ZachAttackMLR avatar Mar 31 '22 21:03 ZachAttackMLR

@ZachAttackMLR no, but in my ~/.config/nvim/init.vim (aka .vimrc)

johnnynia avatar Mar 31 '22 21:03 johnnynia

Wasn't working for me either, no output of : TmuxNavigatorProcessList Response from @johnnynia gave me the tell to fix it, my lua config I was working on for neovim wasn't referencing a working shell for my setup, I had to fix it here:

vim.opt.shell = 'zsh'

Now it's working fine :)

giviz avatar Jul 21 '23 22:07 giviz