gpakosz / .tmux

🇫🇷 Oh my tmux! My self-contained, pretty & versatile tmux configuration made with ❤️
MIT License
21.73k stars 3.34k forks source link

Navigate windows with <prefix> C-h and <prefix> C-l not working on MacBook Pro Ventura #660

Closed uthpalaherath closed 8 months ago

uthpalaherath commented 1 year ago

Dear developer,

First of all, thank you so much for this wonderful tmux configuration.

I found that for MacBook Pro Ventura and some Linux systems, the navigating windows with C-h and C-l is not working. Would you know what may be going on? I am happy to provide whatever additional information you would require.

Thank you!

gpakosz commented 1 year ago

Hello @uthpalaherath,

I suspect you're not using the proper key sequence. Try this

Which when done quickly can be

See also escape-time in tmux manual.

uthpalaherath commented 1 year ago

Dear @gpakosz,

Thank you for your swift response.

I believe I am using the proper key sequence as this works fine on some computers I use. For instance, it works fine on Red Hat Enterprise Linux Server v. 7.9 and CentOS Linux v.8 but does not on MBP Ventura 13.4.1. Would you know why this may be behaving differently on different OS's? In the meantime, I will do a diff between .tmux.conf and .tmux.conf.local of the working/not working cases and see if I could spot any differences.

Thank you.

gpakosz commented 1 year ago

This shouldn't behave differently between different operating systems.

You can look at the output of

$ tmux lsk | grep -E '(previous|next)-window'
bind-key -r -T prefix       C-h                  previous-window
bind-key -r -T prefix       C-l                  next-window
bind-key    -T prefix       M-n                  next-window -a
bind-key    -T prefix       M-p                  previous-window -a
bind-key    -T root         WheelUpStatus        previous-window
bind-key    -T root         WheelDownStatus      next-window
uthpalaherath commented 1 year ago

Yes, it's strange this happens only on some systems. I'm sure it has something to do with that and not your code. Thanks again!

On Wed, Jul 12, 2023 at 12:47 PM Grégory Pakosz @.***> wrote:

This shouldn't behave differently between different operating systems.

You can look at the output of

$ tmux lsk | grep -E '(previous|next)-window' bind-key -r -T prefix C-h previous-window bind-key -r -T prefix C-l next-window bind-key -T prefix M-n next-window -a bind-key -T prefix M-p previous-window -a bind-key -T root WheelUpStatus previous-window bind-key -T root WheelDownStatus next-window

— Reply to this email directly, view it on GitHub https://github.com/gpakosz/.tmux/issues/660#issuecomment-1632879585, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG3ZXMOYX3CVJ2OULPFILY3XP3ILJANCNFSM6AAAAAA2HV2CZI . You are receiving this because you were mentioned.Message ID: <gpakosz/. @.***>

-- Uthpala Herath, Ph.D. Postdoctoral Associate Department of Mechanical Engineering and Materials Science Duke University Durham, NC

Tel. (304) 216-2535 Email: @.*** Website: https://uthpalaherath.github.io/

Cliq5649 commented 1 year ago

Hello, also thank you for great tmux configuration.

Maybe just information very similar thing is happening to me but root cause for that was that i used mobaxterm to connect to my session on ubuntu 20.04. For me only moving to next window was working and moving to previous was doing nothing. When i logged to ubuntu via VMware this issue was not present. I didn't find any setting in mobaxterm that would suggest why it is not working.

chaojiacheng commented 10 months ago

Hello, also thank you for great tmux configuration.

Maybe just information very similar thing is happening to me but root cause for that was that i used mobaxterm to connect to my session on ubuntu 20.04. For me only moving to next window was working and moving to previous was doing nothing. When i logged to ubuntu via VMware this issue was not present. I didn't find any setting in mobaxterm that would suggest why it is not working.

I solved this issue by keep pressed Ctrl.