Post by Thomas Adam
Renumbering of winlinks only happens when the winlink is
killed/destroyed (assuming renumber-windows session option). The point
of 'movew -r' is solely to renumber the winlinks. You can use it with
-t to specify the target, but NOT -s for the source.
Okay, after some experimenting I finally understood how the -r option works:
it renumbers the windows in the target session. I think that could use some
clarification in the man page.
Post by Thomas Adam Post by Jan Larres
So is there a way to move a window and renumber the windows in one operation,
either with a single command or a mapping?
Why do this? I mean, if you wanted to move the current window to
movew -t 3:50 \; movew -r -t3
With a fixed session number this would work, yes. But the idea is that I want
to be able to press a key, enter the session number, press enter, and have the
current window move and the windows renumbered automatically in both the
source and the target session. The only way I can think of to make this work
is to write a shell script that executes the appropriate commands and pass the
session number to it with a command-prompt binding. This is certainly
possible, but it would be much simpler if moving windows respected the
By the way, while I'm at it it would be nice if there was an option that
allows you to move a window inbetween two existing windows instead of just
saying that the index is in use, like moving tabs works in Vim.
Anyway, thanks for the help so far.