Created
March 25, 2015 11:35
-
-
Save bartj3/6d3bd8efd2ceaf02d443 to your computer and use it in GitHub Desktop.
Hide tmux status bar when zoomed in on a pane
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bind-key z resize-pane -Z \; if-shell "tmux list-panes -F '#F' | grep -q Z" "set -g status off" "set -g status on" |
Thanks you both for this snippet, makes a huge difference!
The modified version still works; thank you!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this! I modified it slightly:
This makes it so that it'll check whether to show or hide on status bar after every resize instead of only after ones that are triggered by the Prefix + z combination. So running
tmux resize-pane -Z
will trigger the check.I wanted this because I have a vim command that goes into a distraction-free mode (using Goyo) and automatically zooms the pane, and this way it'll also automatically hide the status bar.
Anyways, just wanted to comment in case this helps someone else, and to thank you for this super useful snippet!