Linux – Bind Ctrl-Tab to cycle through windows in tmux

key-bindinglinuxtmux

I'm trying to figure out how to bind ctrl-tab to cycle through all open windows, I've tried:
bind-key -n C-Tab select-window -t :.+
which says Unknown key.

What am I missing?

Note: I don't want to use my prefix keys prior to pressing ctrl-tab, I just want ctrl-tab to cycle through all the panes.

Best Answer

In my terminal (OS X terminal), when I press C-Tab it treats it the same as a normal tab. To work around that issue you can modify your terminal settings to bind C-Tab to F20 and in tmux bind F20 to next-window.

Related Question