Re: reorder windows like browser drag+drop tab reordering

Sadrul Habib Chowdhury <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <CACdzHCiKEVmtSWyZ8q+o0FLynLEM4wZFUsNdqhC2sUKBMg44HQ@mail.gmail.com>
On Fri, Jan 27, 2012 at 7:32 AM, Albert Vilella <[email protected]> wrote:
> Hi,
>
> I have about 20 windows open in my screen session, and I would like to
> reorder the right-most window 20 to say, just before position 10 like this:
>
> 1 2 3 4 5 6 7 8 9      10 11 12 13 14 15 16 17 18 19 20
>                                                   ...V
>                                        ............
>                      ...................
>                   ....
>                   V
> 1 2 3 4 5 6 7 8 9 20   10 11 12 13 14 15 16 17 18 19
>
> How can I do that in a simple command?

A single simple command can't quite do what you want. You can go to
window 20, then issue the command 'number 10' to move it in the 10th
position. But this swaps windows 20 and 10, instead of pushing windows
10 through 19 one step to the right.

If you are using the development version (e.g. from git), then there
is a more interactive way of doing this: go to the window-list
(usually ^A"), select the window you want to move, and press , or . to
move the window up or down the list.

Sadrul
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.