DEV Community

Play Button Pause Button
Waylon Walker
Waylon Walker

Posted on • Originally published at


tmux zoom

Zooming into the current split in tmux is a valuable tool to give yourself some screen real estate. These days I am almost always presenting, streaming, or pairing up with a co-worker over a video call. Since I am always sharing my screen I am generally zoomed in to a level that is just a bit uncomfortable, so anytime I make a split it is really uncomfortable, being able to zoom into the split I am focused on is a big help, and also help anyone watching follow where
I am currently working.

Default key bindings for zooming the current split

bind-key          z resize-pane -Z
Enter fullscreen mode Exit fullscreen mode

I have rebound this to match the default binding with mod+z rather so that I get that single keystroke experience.

bind -n M-z resize-pane -Z
Enter fullscreen mode Exit fullscreen mode

Be sure to check out the full youtube playlist and subscribe if you like it.

Also check out this long form post for more about how I use tmux.

Top comments (3)

rossijonas profile image
Jonas B. R.

Waylon, thanks for that! I am considerably improving my tmux workflow with your tips. I was not aware of this zooming capability, is it so useful!

rubyrubenstahl profile image
Ruby Rubenstahl

Definitely a helpful one to know. I use it a thousand times a day. I like to have a tmux window with a pane each for vim, testing, and a command prompt for running misc commands.

Most of the time I'll keep my code window zoomed and then drop back to tiled mode when I need to have eyes on the logs.

rossijonas profile image
Jonas B. R.

Yes! Exactly that...!

Also, after adopting that today I made a small improvement as well, I just added to my status line:
(inside status-left in .tmux.conf)

#P/#{window_panes} it displays in status line:

<active pane number>/<amount of panes>

2/3 when zoomed in you know that the window has more panes.

50 CLI Tools You Can't Live Without

>> Check out this classic DEV post <<