4

I've got a few tmux key bindings like this, which allow me to switch windows without using the mouse

bind -n M-Left select-pane -L    ## move left one pane

How can I bind a single key that can cycle through the panes on the screen (similar to how ALT+TAB works)?

  • Like a single key for ALT+TAB? – Android Dev Sep 27 '16 at 18:26
  • yes, exactly. let me update the question to clarify. – Mark Harrison Sep 27 '16 at 19:56
  • I edited your question to use <kbd> tags for ALT+TAB – Android Dev Sep 27 '16 at 19:57
2

With default keybindings:

Ctrl+b n

will flip thru to the next window, same way alt-tab works for windowed applications.

Ctrl+b o

Should flip through the panes within the window.

0

For instance, you could use bind-key -n M-Up next-window to cycle through windows, 1 at a time by pressing Meta+CursorUp (Alt+CursorUp on most systems).

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.

Not the answer you're looking for? Browse other questions tagged or ask your own question.