How do I jump to double-digit window number in tmux?

Normally, I can jump to a window in tmux using Prefix-N, where N is my window number.

Unfortunately, if N is number of like 10, it will just jump to window 1.

How can I jump to Window 10 instead?


There are two straightforward options (let C-b represent the prefix key):

  1. Bring up a prompt in which to enter a specific window index with C-b ' (this is a default key binding). Press enter after inputting the desired index.
  2. Interactively select the window you want from a list with C-b w (also a default key binding). In this list, windows are assigned a character in order from 0 to 9 and then from a onward. Press a character to jump to the corresponding window or use the arrow keys to highlight one and press enter.

Although option 2 is fewer keystrokes (using the characters), it's arguably less elegant than option 1. First, the window list completely obscures the current pane; second, indices are assigned to windows based on their order, meaning that the index in the list may sometimes differ from the index displayed in the window titles (such as when there are gaps in the window numbering).

If you're looking for the least intrusive and most analogous (compared to C-b N) solution, option 1 is probably your best bet.