Eugeny / tabby

A terminal for a more modern age
https://tabby.sh
MIT License
58.35k stars 3.36k forks source link

tmux: Meta-<Arrow> and Mouse Issues #2122

Open valsamis-d opened 4 years ago

valsamis-d commented 4 years ago

Hi,

I'm using terminus with the default "WSL / Ubuntu-18.0.4" profile and have the following in my tmux.conf file:

# Use Alt-arrow keys without prefix key to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D

# Enable and Disable Synchronize Commands to All Panes
bind -n M-a setw synchronize-panes on
bind -n M-o setw synchronize-panes off

# Enable mouse control (clickable windows, panes, resizable panes)
set-option -g mouse on
setw -g -q mouse on

While [Alt+a] and [Alt+o] (2nd section) work just fine [Alt+<Arrows>] (1st section) do not work.

Also, my mouse is almost not usable. I cannot select + copy temp plus I cannot select panes.

All of the above work just fine with Windows default WSL terminal and some other ones.

Any idea what it can be wrong?

Thank you Dimitrios

azurefreecovid commented 4 years ago

I have a very similar issue with Tmux. [Ctrl+B] and then [Ctrl+<Left_or_Right_arrow>] to adjust the split screen widths isn't working for me. It works with both the new Windows Terminal Application and my other terminals (with the same server), but isn't working with terminus for some reason.

foxhoundsk commented 4 years ago

Same here, does Terminus somehow intercepted these bindings? I didn't find any related settings though.

P.S. My intercepted key bindings are Alt-Left and Alt-Right.

Thanks!

Hariama commented 3 years ago

@foxhoundsk Have you resolved this issue by any chance? I experience the same problem with the meta+arrow-keys, including that I cannot use [Alt+{random number}] to select a buffer in Weechat.

foxhoundsk commented 3 years ago

@Hariama Nah, I've switched to Alacritty. 😢

BTW, just tried the latest version and the interception problem is still present, and it's worth mention that [alt+<arrow>] didn't get treated as hotkey (confirmed this through the built-in devtools), whereas the hotkey you mentioned ([Alt+{random number}]) is treated as hotkey tab-<random number>.

Therefore, I think that you have higher chance than me to solve the [Alt+{random number}]-cannot-use problem, which can be solved simply through disabling the hotkey in the configuration page.

Good luck!

mikkel1156 commented 2 years ago

Also experiencing this on Arch with the latest 1.0.161 version for my SSH session, enabling the "Use Alt key as the Meta key" option did not help.

hongsonitptit commented 2 years ago

Faced with same issue. I could not send Meta (Alt) to tmux in tabby. however it still works on default terminal app in Window and Ubuntu. Enable "Use Alt key as the Meta key" didn't work

aheidelberg commented 2 years ago

Same issue, I use Alt+Arrow to navigate panes in tmux and it seems like the command is just not send to tmux.

dyipon commented 2 years ago

Same here, alt+arrow cannot work under tmux.