3 ms·
Thanks for the suggestions! Yeah, this kind of works, but I need to do maybe too many steps to get what I want, maybe with some tmux scripting fu I'd make it w
by rgrau 14y ago
Thanks for the suggestions!
Yeah, this kind of works, but I need to do maybe too many steps to get what I want, maybe with some tmux scripting fu I'd make it work.
The main issue is that I can open my apps always in the same order, so I know wich window number it has, then, joining-pane by window number would be doable. the problem is that after breaking and joining a few times, numbers may get scrambled.
Another issue is that if an app is in a pane, it looses the identity, and cannot be joined to another window alone.
I'm thinking on doing something in the lines of:
WINDOW=`tmux list-windows | grep active | sed -e 's/^\(.\).*/\1'`
choose-window "join-pane -s $WINDOW -t %%"
But for the moment, no luck.
Will keep trying :)
- q_revert 14y agoI had similar issues to yourself when migrating from screen.. the notion of 'panes' ~= 'windows' doesn't really work in some sense.. in screen when you split you initiate an empty 'pane' (if that makes sense).. and then you put some content into it.. you can also move the 'windows' around to wherever you want.. but all within a single 'pane'-buffer however, in tmux.. what you have is like a whole series of pane containers.. these are called windows.. now, each window can have a name.. whilst a pane on its own does not.. you can fortunately 'join' and 'send' panes between windows.. also, another thing I tend to find useful is the ability to 'break' a 'pane' out've its current window and devote a full window to it.. the .tmux.conf bits you need are bind-key 'j' command-prompt -p "join pane from:" "join-pane -s '%%'" bind-key '@' command-prompt -p "send pane to:" "join-pane -t ':%%'" whilst :break-pane (or ^b ! by default) allows you to send a 'pane' away to its own window.. (apologies it that sounds awfully convoluted/confusing)
- rgrau 14y agoThat's what I was thinking of :). Thanks! Maybe that's as far as we can get by now with it. Luckily tmux is heavily developed so there's hope for that workflow being easily usable in the future.