Forem

0 seconds of 0 secondsVolume 90%
Press shift question mark to access a list of keyboard shortcuts
00:00
00:00
00:00
 
Waylon Walker
Waylon Walker

Posted on • Originally published at waylonwalker.com

4 1

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.

https://www.youtube.com/playlist?list=PLTRNG6WIHETB4reAxbWza3CZeP9KL6Bkr

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

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (3)

Collapse
 
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!

Collapse
 
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.

Collapse
 
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}

...so it displays in status line:

<active pane number>/<amount of panes>

...like:

2/3

...so when zoomed in you know that the window has more panes.

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay