iTerm2 icon indicating copy to clipboard operation
iTerm2 copied to clipboard

Force new splits into their own new window when Option key is held down.

Open JohnSpeno opened this issue 11 years ago • 7 comments

I wanted to resubmit this patch that adds a new feature to the Sessions window. If a user holds down the Option key while pressing either of the Split buttons, then the selected sessions will open in a new window split in the requested way. I use this nearly each time I use iTerm. If there are required changes, let's discuss them here and alter the pull request as needed. Thanks.

JohnSpeno avatar Mar 22 '13 11:03 JohnSpeno

I feel like this could work if there were some visual indication when you press option, like the button labels changing. There's not a lot of space to work with, though, so it'll be tricky to find the right UI. I'm not married to the existing one, which is pretty weird, so don't be afraid to make radical changes.

gnachman avatar Mar 25 '13 06:03 gnachman

I still have no UI chops. My lame idea was to put a string bellow the buttons that read "Holding down option key will open splits in a new window." How do you feel about that?

JohnSpeno avatar Mar 25 '13 11:03 JohnSpeno

Hm, I think it needs more work. I wonder if this is something that should be scripted since it's kind of an edge case. But I'm not really sure how scripting would hook into it either, since it needs some UI. I'm kinda stuck on this one at the moment.

gnachman avatar Apr 08 '13 21:04 gnachman

The Mac has a long history of hidden features activated by holding down the Option key. For example, clicking on the Speak or Wi-Fi icons in the menu bar reveal different content when the Option key is down. My patch continues that proud tradition. :-)

JohnSpeno avatar Apr 09 '13 22:04 JohnSpeno

Here's what I think: we can add an icon to the buttons (shown only when option is pressed) to indicate that a new window will be used. For example, this: http://png.findicons.com/files/icons/2315/default_icon/128/open_in_new_window.png We can eliminate the clunky "new tabs in new window", moving that functionality into opt+"new tab". Add a label that says "Press option to open in profiles in a new window", shown only when multiple profiles are selected.

gnachman avatar Apr 16 '13 20:04 gnachman

I like how you think. When multiple profiles are selected, it would be best to have the 'New Window' button change its text to 'New Windows'.

JohnSpeno avatar Apr 16 '13 20:04 JohnSpeno

Agreed.

gnachman avatar Apr 19 '13 20:04 gnachman