Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions ProfilesWindow.m
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,14 @@ - (void)_openBookmarkInTab:(BOOL)inTab firstInWindow:(BOOL)firstInWindow inPane:

- (IBAction)openBookmarkInVerticalPane:(id)sender
{
BOOL windowExists = [[iTermController sharedInstance] currentTerminal] != nil;
BOOL windowExists;
if (([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask) != 0) {
// Force open in new window when Option key pressed
windowExists = false;
}
else {
windowExists = [[iTermController sharedInstance] currentTerminal] != nil;
}
[self _openBookmarkInTab:YES firstInWindow:!windowExists inPane:VERTICAL_PANE];
if ([closeAfterOpeningBookmark_ state] == NSOnState) {
[[self window] close];
Expand All @@ -124,7 +131,14 @@ - (IBAction)openBookmarkInVerticalPane:(id)sender

- (IBAction)openBookmarkInHorizontalPane:(id)sender
{
BOOL windowExists = [[iTermController sharedInstance] currentTerminal] != nil;
BOOL windowExists;
if (([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask) != 0) {
// Force open in new window when Option key pressed
windowExists = false;
}
else {
windowExists = [[iTermController sharedInstance] currentTerminal] != nil;
}
[self _openBookmarkInTab:YES firstInWindow:!windowExists inPane:HORIZONTAL_PANE];
if ([closeAfterOpeningBookmark_ state] == NSOnState) {
[[self window] close];
Expand Down