I work extensively with the tmux integration in iTerm2 and:
- Open new profiles (normally by connecting to a distinct tmux session) utilizing shortcut keys
- Open new home windows or tabs throughout the identical tmux session (identical profile) utilizing Cmd-w or Cmd-t
- Use the hotkey window for many native terminal jobs
If I press a hotkey (for a tmux session profile), it at all times opens in a tab of any iTerm2 window already current, which is normally the hotkey window, and takes the dimensions of the important thing window fast entry and never the window measurement outlined within the profile. This turns into a “tmux session consumer” terminal that hides upon connection, however your entire tmux session adopts the hotkey window measurement because the default window measurement as an alternative of my profile measurement.
one of many Window The configuration choices for an iTerm2 profile are “At all times open in a brand new window, by no means in a tab”however this even overrides the usage of Cmd-t which might usually open in a tab, so it does not work.
I’m on the lookout for: a option to make the brand new profile (invoked with a shortcut key) at all times open in a brand new window, whereas respecting Cmd-t as new tab.
A technique I can think about doing that is to have iTerm2 open a brand new profile in a brand new window provided that the profile is completely different than the profile within the present window.
I am open to any resolution right here.