On Wed, Apr 01, 2015 at 12:22:27PM +1300, Jan Larres wrote: > Are you saying that "move-window -r" is essentially a completely different > command that doesn't actually involve moving windows? That is not made clear > in the man page, and is not exactly intuitive. I had interpreted the option to > mean that after moving a window it would automatically renumber the windows > independent of the renumber-windows option.
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. > This would be especially useful since > https://sourceforge.net/p/tmux/tickets/150/ isn't fixed yet. I am trying to > create a mapping like this for easy window moving: I suppose I could modify movew to support this, although there's likely no point. Seems I looked at this. > 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 session 3, you can just do: movew -t3: And tmux can figure that out itself. What you can do is this: movew -t 3:50 \; movew -r -t3 Which would move the current window to session 3, window index 50 and then renumber the winlinks in session 3. -- Thomas Adam -- "Deep in my heart I wish I was wrong. But deep in my heart I know I am not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.) ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users