brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: Ctrl-b q numbers your panes so you can jump to one with a digit

Tmux
~/tips/tip-tmux-display-panes

Ctrl-b q

Shows a big number on every tmux pane for a moment, and pressing a digit selects that pane.

Four panes with similar prompts are easy to mix up. tmux can label them for you.

Ctrl-b q

A large number appears over every pane for about a second, with its size in the corner. Press the digit while it is visible and you jump there. Those numbers are the ones you use in commands such as tmux send-keys -t work:1.2.

This is the shortcut I would teach right after splitting. As soon as you have three panes, you need a quick way to say which one you mean, and the number overlay is exactly that.

The pane number is the last part of a full target such as work:1.2. Once you can read that, the rest of the manual becomes easier, because almost every command accepts -t with a target in that form. The status bar shows the session and window, and this overlay shows the pane.

The numbers vanish quickly. If you are too slow, raise display-panes-time in milliseconds, for example set -g display-panes-time 4000.

Try it without risk: start a throwaway session with tmux new -s scratch, use the shortcut or command above there, look at what changes, and close the session again with tmux kill-session -t scratch. Nothing else on your machine is touched.

Further reading: tmux manual page (OpenBSD, official), tmux wiki: Getting Started (official), On this site: Ctrl-b Alt-arrow resizes a tmux pane five cells at a time, On this site: tmux select-layout tidies a mess of panes in one command

More Tmux tips tmux new -d -s report -x 200 -y 50 'top' tmux wait-for build-done set -g allow-passthrough on tmux kill-server Ctrl-b [ All Tmux tips (125) All topics

Link