> This can already be done though -- I wonder if it's not very clear in the > man page? > > Assume you have two windows with more than one pane in, and you wanted to > swap pane 2 in window 1 with the active pane in window 2. You would do > this: > > swap-pane -s 1.2
ok, great, what I'm suggesting is a simpler interface, akin to last-window (last-pane?) - prefix <somekey> would swap an active pane on another window with the current pane, and prefix <somekey> would swap them back. For more advanced use, my suggestion was to have another keybinding, for find-pane, akin to what find-window does. Users would enter a drop down list where they could select which pane they wished to swap, and their selection would then determine which pane to swap for the current pane. 'last-pane' would then work to swap these panes around. I'm not sure how to make it more elaborate though. As much as I like the idea of scrolling through panes like scrolling through windows (next-window), doing this is relatively ugly, because in the best of worlds to be able to cycle would mean screwing up every window setup that you've setup. Best just to keep it simple IMO. >> In addition, the functionality to actually display a list of panes >> already exists as well through the find command, so there would be no >> extra classes there as well. > > I don't know what you mean here. find-window displaying panes has nothing > to do with swapping panes. The code-paths are even completely different. I guess my point was that you already have code to display panes in a drop down menu, that you could adapt by either copying or making more generic.. > -- Thomas Adam (ps - making a last-pane hotkey might be a bit simpler if there was a way to specify the current window number, and the next window number as variables in the bind, eg bind r swap-pane -s #current_window.#next_window I see -t:.- to denote the previous tab number on the current window, is there an equivalent for the previous and next window? ) ------------------------------------------------------------------------------ Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users