Feature - Tmux - Switch to the attach session if it's already open
- iTerm2 version: 3.2.6Beta4
- OS version: Mojava
Detailed steps to reproduce the problem:
ssh <some-host> -t 'command; tmux -u -CC attach -t jm || tmux -u -CC new -s jm'. This commands first try to attach to a session, if not it creates a new one.
- Do some work, close the tab, but don't detach.
- Do some other work forget your session is already open somewhere (or hidden)
ssh <some-host> -t 'command; tmux -u -CC attach -t jm || tmux -u -CC new -s jm'again.
The following dialog is displayed:
Once there I need to bring up the tmux dashboard and re-open the right session.
What should have happened:
It would be nice if iTerm would re-open (as in show the tab or window) the session instead. An option for it would be nice too. The dialog could also display a button to
Switch to the attached session.