1

When I'm in a multi-pane tmux window, on the leftmost pane, pressing my shortcut to move to the pane to the left will cyclically move the focus to the rightmost pane. I would prefer this shortcut to take no action in this case, i.e., to stay in the already selected leftmost pane.

I read the man page. There is also a chapter about pane traversal in the The Tao of Tmux book, but this is not mentioned.

The select-pane command in tmux has a lot of switches, but they are not documented:

$ tmux select-pane --help
usage: select-pane [-DdegLlMmRU] [-P style] [-T title] [-t target-pane]

In case it's relevant, my shortcuts to select the panes are as follows:

bind -n C-M-h select-pane -L
bind -n C-M-j select-pane -D
bind -n C-M-k select-pane -U
bind -n C-M-l select-pane -R

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.