简体   繁体   English

iterm2 Tmux集成:如何将窗口重新合并到选项卡; 和X11转发支持

[英]iterm2 Tmux integration: How to remerge windows back to tab; and X11 forwarding support

When I'm using iterm2+Tmux using 当我使用iterm2 + Tmux时

tmux -CC a -t 0

I can drag a tab from a tmux window so it becomes it's own window, but how do I get it to become a tab again? 我可以从tmux窗口中拖动选项卡,使其成为自己的窗口,但是如何使它再次成为选项卡呢? The only way I know of how to do it is through tmux dashboard by hiding/selecting all/reopen as tabs... is there another way to do this? 我知道如何做到这一点的唯一方法是通过tmux仪表板隐藏/选择所有/重新打开为选项卡...还有另一种方法吗?

Also, does X11 forwarding work in iterm2+tmux integration? 另外,X11转发是否可以在iterm2 + tmux集成中工作? it looks like if I just do tmux it works but tmux -CC it doesn't? 看起来如果我只是做tmux可以用,但是tmux -CC不能用吗?

Turns out this is not an iterm2+tmux integration issue and more like a iterm2 issue... Here is the solution: 事实证明这不是iterm2 + tmux集成问题,而更像是iterm2问题...这是解决方案:

  1. In iterm2 Preference>Appearance> Enable Show tab bar even when there is only one tab 在iterm2中,“首选项”>“外观”>“启用Show tab bar even when there is only one tab
  2. You can then drag and drop the tab as usual 然后,您可以照常拖放标签

For X11 forwarding support, I just restarted (Cmd + Q) iterm2 and it works now. 对于X11转发支持,我刚刚重新启动(Cmd + Q)iterm2,现在可以正常工作了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM