Select Pane with C-<number> in tmux

duckworthd picture duckworthd · Sep 5, 2013 · Viewed 20.2k times · Source

In tmux, the default behavior for processing C-b 0 is to jump to window 0. I would like C-b C-0 to jump to pane 0 in the current window. My attempts at adding,

bind-key C-0 select-pane -t 0

to my .tmux.conf have failed. Is there something else I'm missing?

Answer

Covi picture Covi · Jan 9, 2014

Not exactly the way you are looking for, but I doubt you have a reason not to love the following:

  1. display-panes or the likes (<prefix> + q by default),
  2. enter the number of the pane you are switching to.