You are not logged in.
Hi there!
I have two questions related to the same problem in tmux. The problem is that when you attach (by accident) to a session which has been opened on a larger screen, it is resized. This changes the sizes of the panels on the original, large screen, as well as the relative sizes of vim panels, which is really annying. This could be prevented, for instance, if I knew the size of the session in advance, so I could avoid attaching to it. I see multiple potential solutions/workaround for this, though, hence the multiple questions (but google hasn't been kind enough to help me).
In the first scenario, I want to change to another session using the session list (<Ctrl-b><s>), but haven't assigned any meaningful names to the sessions, so I have no idea which session is the one opened on the larger screen.
[1] Is there a way to display the current screen size of each session in the session list?
In the second scenario, I attach to a tmux server without attaching to a specific session (because I haven't assigned any names, or don't recall them). If the session I'm attached to by default is opened on a larger screen, I run into the resizing problem.
[2] Is there a way to attach to a session which has the current screen's dimension (if there is one)? Maybe the session can automatically be sorted by screen size, so that by default I'm attached to the smaller screen.
[3] Another possible solution: Is there a way for tmux to warn me whenever I'm about to resize a session, be it by changing the session (scenario 1) or by attaching (scenario 2) (which, I assume, is in the end equivalent to tmux anyway), and allow me to abort my attempt?
Any suggestions are appreciated!
Last edited by cryptkeeper (2014-12-10 08:18:22)
Offline