Yes... I'm not sure what we can do about that. I'm not really that happy about using '' for empty pane, maybe I will make it accept - or something as an alternative.
On Thu, 28 May 2020, 14:31 Steffen Nurpmeso, <[email protected]> wrote: > Hello one more time. > > Steffen Nurpmeso wrote in > <20200525143632.u3d8z%[email protected]>: > |Nicholas Marriott wrote in > |<CAEdLfcFWFdYVB_29CGiQUZRSbFxXTzTMRBOMJOQezZRF2pAk=q...@mail.gmail.com>: > |||Nicholas Marriott wrote in > |||<CAEdLfcFyoq1bfOp3U+KG=[2][email protected] > [/\ > |||2]>: > ||| |On Sat, 23 May 2020, 22:01 Steffen Nurpmeso, <[1][3][email protected] > \ > |||u[/3][/1]> \ > ||| |wrote: > ||| ||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 > ||| ... > ||| ||Unfortunately the edit window will be named edit/edit not > ||| ... > ||| |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 \ > |||tempor\ > ||| |ary pane after you join the pane back. > || > |||In parts i was being afraid of getting this answer :) > |||Yeah sure, thanks. ... and ... any hints on the name problem? > | > ||You can use run-shell to do the expansion instead of rename-window, \ > ||eg run 'tmux rename "#{window_name}"'. > | > |That works fine, and i really did not think of that. Thank you! > > I just wanted to remark FYI that if i place > > bind-key M-1 run-shell "tmux rename-window -t 1 edit/#{W}"\; \ > split-window -d ''\; join-pane -h -s 0 -t :1\; select-pane -t 0 > > in my tmux.conf then that '' is not treated as the "empty shell > command", whereas > > ..split-window -d '' \;.. > > is. > Ciao! > > --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/CAEdLfcFcmn%2BLzhHDJ65fBF_Cjg3Z2MCP9EUjG9SGTVY_9j-4ug%40mail.gmail.com.
