Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work anymore with tmux 3.2 #294

Open
tklepzig opened this issue May 13, 2021 · 13 comments
Open

Does not work anymore with tmux 3.2 #294

tklepzig opened this issue May 13, 2021 · 13 comments

Comments

@tklepzig
Copy link

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

@rollue
Copy link

rollue commented May 14, 2021

Same here.

tmux: 3.2
neovim: v0.4.4

@christoomey
Copy link
Owner

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?

@rollue
Copy link

rollue commented May 15, 2021

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.

@tklepzig
Copy link
Author

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.

@christoomey
Copy link
Owner

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.

@ds82
Copy link

ds82 commented Jul 28, 2021

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

@jvanbaarsen
Copy link

jvanbaarsen commented Jan 4, 2022

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.

@ZachAttackMLR
Copy link

ZachAttackMLR commented Mar 10, 2022

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.

@johnnynia
Copy link

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

@johnnynia
Copy link

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. :)

@ZachAttackMLR
Copy link

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

@johnnynia
Copy link

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

@giviz
Copy link

giviz commented Jul 21, 2023

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants