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

TmuxNavigateLeft is not working on my computer #327

Open
yerkocodes opened this issue Nov 12, 2022 · 3 comments
Open

TmuxNavigateLeft is not working on my computer #327

yerkocodes opened this issue Nov 12, 2022 · 3 comments

Comments

@yerkocodes
Copy link

Since I installed the tmux navigator plugin, the movement to the left is not working, all the others work correctly and I already verified that it is not collapsing with another mapping, so I have not found a solution.

I use NeoVim on Kali linux

┌──(user32㉿kali)-[~/.config/nvim]
└─$ nvim -v                    
NVIM v0.8.0-1210-gd367ed9b2
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by runner@fv-az505-656

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/share/nvim"

Run :checkhealth for more info

┌──(user32㉿kali)-[~/.config/nvim]
└─$ tmux -V   
tmux 3.3a

This is my repo of configs

Sorry but I'm not expert enough to see an obvious solution, I would appreciate some help 😉

@christoomey
Copy link
Owner

Hmm, hard to say based on the information provided, but since it's just moving to the left that doesn't work, my guess is it is a conflict in the key bindings. I know you mentioned that "I already verified that it is not collapsing with another mapping", but just to confirm, there are mappings at both the tmux and Vim level, and the conflict can occur at both levels.

Did you run through the steps in the troubleshooting guide by any chance? Specifically the note in this section. Likewise, can you check the output of tmux list-keys -T root | grep 'C-h' to confirm the tmux mapping is set as expected?

@skbolton
Copy link

I just helped a coworker get over this and the same solution might work for you.
She had set up a new machine and realized that she hadn't cloned TPM and set up
the tmux plugins on the new machine. This led to having the vim plugin installed
which would send the right commands to move but in the tmux side of things the
bingings weren't set up because the tpm plugin was missing.

If you run <prefix>I and you don't get the TPM refreshed display you know you
are missing tpm and need to set that up.

@hopezh
Copy link

hopezh commented May 7, 2023

Hmm, hard to say based on the information provided, but since it's just moving to the left that doesn't work, my guess is it is a conflict in the key bindings. I know you mentioned that "I already verified that it is not collapsing with another mapping", but just to confirm, there are mappings at both the tmux and Vim level, and the conflict can occur at both levels.

Did you run through the steps in the troubleshooting guide by any chance? Specifically the note in this section. Likewise, can you check the output of tmux list-keys -T root | grep 'C-h' to confirm the tmux mapping is set as expected?

I also can't get vim-tmux-navigator's keymaps to work...

The output of tmux list-keys -T root | grep 'C-h' on my computer (Alacritty, Ubuntu installed via vmware on Windows 11) is the following:

bind-key    -T copy-mode-vi C-h                  select-pane -L
bind-key    -T root         C-h                  if-shell "ps -o state= -o comm= -t '#{pane_tty}'     | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|l?n?vim?x?)(diff)?$'" "send-keys C-h" "select-pane -L"

May ask if this is correct?

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

4 participants