Hi, On 31/03/15 19:53, Thomas Adam wrote: > On 31 Mar 2015 04:26, "Jan Larres" <j...@majutsushi.net > <mailto:j...@majutsushi.net>> wrote: >> there seems to be a bug in the move-window command when using the -r option. >> >> Let's assume I have a session "0" with two windows and a session "1" with one >> window. In of the windows from session 0 I run the command: >> >> tmux move-window -t 1: >> >> which correctly moves the window to session 1. The same works the other way >> around to move it back to session 0. However, if I run it like this: >> >> tmux move-window -r -t 1: >> >> then it doesn't work -- it doesn't do anything, the window remains in session >> 0, no error message is printed and no non-zero exit code is returned. So >> there >> must be something going wrong with the command. > > This is because -r is a separate operation to how the rest of movew works.
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. 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: bind-key m command-prompt -I 'move-window -t ' But this doesn't renumber the windows, and writing it like this also doesn't seem to work: bind-key m command-prompt -I 'move-window -t ' \; move-window -r So is there a way to move a window and renumber the windows in one operation, either with a single command or a mapping? If the option really works like you say then actually having it as a separate command called something like renumber-windows would in my opinion be more intuitive than having it change an only marginally related command into something completely different. -Jan ------------------------------------------------------------------------------ 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