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):
C-b '
(this is a default key binding). Press enter after inputting the desired index.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.