Skip to content
Snippets Groups Projects
Commit aa138ba4 authored by George Nachman's avatar George Nachman
Browse files

Add Edit Session to the tab context menu. Issue 6281

parent 307be176
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -3930,6 +3930,15 @@ ITERM_WEAKLY_REFERENCEABLE
}
 
// Contextual menu
- (void)editSession:(NSMenuItem *)item {
NSTabViewItem *tabViewItem = item.representedObject;
PTYTab *tab = tabViewItem.identifier;
PTYSession *session = tab.activeSession;
if (session) {
[self editSession:session makeKey:NO];
}
}
- (void)editCurrentSession:(id)sender
{
PTYSession* session = [self currentSession];
Loading
Loading
@@ -4501,6 +4510,12 @@ ITERM_WEAKLY_REFERENCEABLE
}
 
// add tasks
item = [[[NSMenuItem alloc] initWithTitle:@"Edit Session…"
action:@selector(editSession:)
keyEquivalent:@""] autorelease];
[item setRepresentedObject:tabViewItem];
[rootMenu addItem:item];
item = [[[NSMenuItem alloc] initWithTitle:@"Close Tab"
action:@selector(closeTabContextualMenuAction:)
keyEquivalent:@""] autorelease];
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment