The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Resize A tmux Window Split Pane On A Mac

TODO: Pull subtitle into page object

The Easy Way: With The Mouse

Add this to your `~/.tmux.conf`` file to let tmux work with the mouse:

Code
setw -g mouse on

Start a new session, make a new split with either `LEADER-%`` or `LEADER-"`` then drag when divider to resize the panes.

I didn't think this worked at first because the mouse icon didn't change when I hovered over the divider line in iTerm2. The click and drag still worked as expected.

TL;DR With Commands

pre_full_default_section

Details

Hit the leader key (which defaults to CTRLb) then hold the OPTION key and press the ARROW of the direction to push the window

Notes

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Resize A tmux Window Split Pane On A Mac

-- h2

The Easy Way: With The Mouse

Add this to your `~/.tmux.conf`` file to let
tmux work with the mouse:

-- code

setw -g mouse on

-- p

Start a new session, make a new split with
either `LEADER-%`` or `LEADER-"`` then drag
when divider to resize the panes. 

-- note

I didn't think this worked at first because
the mouse icon didn't change when I hovered
over the divider line in iTerm2. The click
and drag still worked as expected. 



-- h2

TL;DR With Commands



-- pre 

CTRL-b
ESC-arrow_key

-- h2 

Details

Hit the leader key (which defaults to 
<<kbd|CTRL>><<kbd|b>>) then hold
the <<kbd|OPTION>> key and press the
<<kbd|ARROW>> of the direction to push
the window


-- notes

- If you're on a mac make sure to use the
<<kbd|CTRL>> key and not <<kbd|Command>>

- At one point I was setup to use <<kbd|ESC>>
instead of <<kbd|CTRL>> based of some setting
in iTerm2, but that's no longer the case. 
Not sure what changed. I think it had something
to do with a remapping I did for Emacs maybe, 


-- ref
-- title: Resizing pane is not working for tmux on mac?
-- url: https://superuser.com/a/1271217/85635


-- categories
-- Command Line 
-- tmux 

-- metadata
-- date: 2022-10-31 12:50:08
-- id: 2guotjvp
-- status: draft 
-- type: post
-- site: aws