Hacker News new | past | comments | ask | show | jobs | submit login

Is there a way (short of writing a script) that will allow me to shuffle windows left and right, and/or move a window and slide the rest down?

Imagine having windows A, B, C, and D respectively in positions 0, 1, 2, and 3. I'd like to move D into position 1 so they end up in this order: A, D, B, C.

Haven't figured out how to pull this off yet.




I do it like this:

    bind-key ) swap-window -t +
    bind-key ( swap-window -t -
So "<prefix> (" swaps the active window with the one on its left, and "<prefix> )" swaps it with the one on its right.

It seems to be what you want.


That works beautifully! Thank you.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: