I've been a Linux (power) user for about a year now. I've learned to figure out most things on my own and written many scripts which help me with my workflow. Specifically, I've learned to use an extremely large amount of shortcuts to accomplish frequent tasks. This is where the trouble begins.
I'd like to be able to switch to the next window in a Tmux session by using 'ctrl+Tab', and switch back to my previous window by using 'ctrl+shift+Tab' without using a prefix (ctrl+b). The bindings I've set in ~/.tmux.conf is
bind-key -n C-Tab next-window bind-key -n C-S-Tab previous-window
should work as it is the accepted answer to https://stackoverflow.com/a/15471269/5273299. (the difference is my '-n' which has proven to work with the following bindings:
# Remap window navigation to vim-like keys bind -n C-h select-pane -L bind -n C-j select-pane -D bind -n C-k select-pane -U bind -n C-l select-pane -R
I'm having trouble figuring out where to look. My observation is that tmux does not recognize 'ctrl+shift' as a mapped shortcut. Instead, 'tab' is passed through to vim (when I have VIM opened in that terminal instance), or as 'complete' in my default command-line interpreter Fish.
I'm running https://solus-project.com/ as my Linux Distribution -- installed with the Desktop Environment GNOME but installed and using i3-wm as my window manager. My terminal emulator is xrvt-unicode (urxvt). Shell FISH as previously mentioned.
The obvious question would be, does anybody know why ctrl+shift is not being interpreted by tmux? The more general solution would be, does anybody know how I can get a general overview of interpretation levels between all of these shortcut interpreters?
- First - keys get sent from the hardware keyboard to the X11 server
- Then, from X11, if CTRL+Tab is not mapped to anything, it gets sent to i3
- Then, from i3, if CTRL+Tab is not mapped to anything, it gets sent to urxvt
- Then, etc.
I'd like to know where the shortcut fails to be interpreted and how I can fix this.
Many thanks in advance!