Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One tip I didn't see mentioned (though it's pretty common in tmux) is to use the default window layouts for organizing multiple panes. You do this with Ctrl + b followed by esc + <num>.

esc + 1: All windows take up equal space horizontally, and stretch the full vertical width

esc + 2: All windows take up equal space vertically, and stretch the full vertical width

esc + 3: The first window takes up half of the screen vertically, and all remaining windows divide up the space equally

esc + 4: The first window takes up half of the screen horizontally, and all remaining windows divide up the space equally

esc + 5: Windows are divided into two equal columns horizontally, and split remaining space vertically.

Even if I have to alter the sizes a bit usually, the pre-defined layouts are super useful for positioning different windows.



Or just jam ctrl + b + space until it looks good.


Just to nitpick a tiny bit, but you mean "panes" and not "windows". Tmux's terms can be slightly confusing and the difference is important in usage!


Good point, thanks for that. Fixing now!


Additionally you can cycle through these with <ctrl-b> + <space>


instead of ESC you can also use ALT (maybe easier to hit for default keyboard layouts)


Thanks for this! :O


Man, many thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: