A simple list of shortcuts for tmux.
Window:
ctrl+b w
→ Choose a window from the listctrl+b 0-9
→ Jump to a specific window by numberctrl+b n
→ Go to the next windowctrl+b p
→ Go to the previous windowctrl+b c
→ Create new windowctrl+b &
→ Close current window (if confirmed withy
)
Panels:
ctrl+b %
→ Vertical splitctrl+b "
→ Horizontal splitctrl+b x
→ Close current (if confirmed withy
)ctrl+b (left, right, up, down)
→ Move to (left, right, up, down) panel
Possibile improvements
ctrl-a ...
→ As prefix (set -g prefix C-a
,unbind C-b
,bind C-a send-prefix
)- https://zolmok.org/tmux-multiple-projects-sessions/ → I'm using a modified version of the bash script in this article to open "multiple windows" projects—mostly fullstack.
Thoughts
I'm trying to use tmux as vanilla as possible. I've fallen too many times in the customization rabbit hole, a price I'm happy to pay for Neovim but not for other things. They work out of the box well enough for me.
I've used Zellij for a good amount of time (>1 year). For unknown reasons, I found it too heavy, and it was causing problems. I'm trying tmux, hoping that it will be lighter.