我在屏幕会话中打开了 20 个窗口,我想对最右边的窗口 20 重新排序,就在位置 9 和 10 之间,如下所示:
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
Run Code Online (Sandbox Code Playgroud)
我怎样才能在一个或几个命令/秒中做到这一点?
Kar*_*los 21
我所知道的最好的方法是重新编号所有窗口,如下所示:
C-a :number X
Run Code Online (Sandbox Code Playgroud)
其中 C = ctrl,X 是您想要的此窗口的数字。在您的情况下,这意味着您需要移动 20 -> 10 和 10 -> 20。如果您愿意,可以使用更复杂的方法。
从手册页:
number [n]
Change the current windows number. If the given number n is already
used by another window, both windows exchange their numbers. If no
argument is specified, the current window number (and title) is shown.
Run Code Online (Sandbox Code Playgroud)
小智 8
我不知道如何使用鼠标重新排序窗口编号。但是在 git 版本中,窗口数量可以增加或减少相对数量。
number [[+|-]n]
在 中windowlist,您可以使用,(previous) 或.(next)交换窗口编号。
在您的示例中,以下过程将满足您的愿望。
select 20)windowlist),键 10 次