Split the window to make a temporary pane (it could be empty) before you break pane to stop the window being killed, and then kill the temporary pane after you join the pane back.
On Sat, 23 May 2020, 22:01 Steffen Nurpmeso, <[email protected]> wrote: > Hello. > > With tmux as a desktop environment i still struggle with things as > stated in 20191018201234.p5wxx%[email protected] (which cannot be > found unless you only search for date, it was [1]), there i wrote > > The nice thing on windows is that they have an entry in the > title line, for example here there is > > 0:mail* 1:edit 2:accu 3:doc 4:tmp- 5:vms 6:irc > > and i have shortcuts to get there, and i can get to that neat > window overview tree with one shortcut too. I see from a glance > where i am. > > What i really would like to have would be some kind of split-frame > that splits the layout so that multiple windows share the frame, > rather than split-window that splits a window into panes. I.e., > a split on top level. For example, so that edit and doc are > visible in one go, or edit and irc (now on IRC, since a few > months!!). > > [1] > https://www.mail-archive.com/[email protected]/msg01054.html > > So i do "the same" with panes: > > bind-key M-1 rename-window -t 1 edit/#W\; join-pane -h -s 0 -t :1.0 > > joins X into the "edit" window, so i can see irc, or doc, or a VM > ssh session, or whatever, at the same glance as my vim session. > > Unfortunately the edit window will be named edit/edit not > edit/(irc|doc|..) with this, and > > i="#{W}"\; rename-window -t 1 "edit/$i"\; join-pane -h -s 0 -t :1.0 > > is not supported. I have found no way to carry over the data of > the window(/pane) that is active once i invoke the binding, would > be very cool to be able to do that! > > bind-key M-2 break-pane -n accu -s 1 -t 2\; rename-window -t 1 edit > ... > bind-key M-6 set-option history-limit 0\; \ > break-pane -n irc -s 1 -t 6\; \ > set-window-option -t 6 monitor-activity on\; \ > set-option history-limit 42000\; \ > rename-window -t 1 edit > > then let me do "the reverse". > > But. If i open a window while having joined a pane, the window > slot will be gone. Also, when recreating the window it seems all > options have been lost, i need to set them again, but that does > not reflect any option that i might have set in the meantime. > Being able to keep the window open, even if it does not have any > panes, that would be great! > > Do i miss something? Is that already possible today, somehow > (tmux 3.1b)? > > Thanks, and a nice Sunday from Germany i wish, > > --steffen > | > |Der Kragenbaer, The moon bear, > |der holt sich munter he cheerfully and one by one > |einen nach dem anderen runter wa.ks himself off > |(By Robert Gernhardt) > > -- > You received this message because you are subscribed to the Google Groups > "tmux-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/tmux-users/20200523210153.0RRXQ%25steffen%40sdaoden.eu > . > -- You received this message because you are subscribed to the Google Groups "tmux-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/CAEdLfcFyoq1bfOp3U%2BKG%3Dqxet2KtQaD9CcSuZmakurkDXTbRcQ%40mail.gmail.com.
