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
@@ -3930,6 +3930,15 @@ ITERM_WEAKLY_REFERENCEABLE
Loading
@@ -3930,6 +3930,15 @@ ITERM_WEAKLY_REFERENCEABLE
} }
   
// Contextual menu // 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 - (void)editCurrentSession:(id)sender
{ {
PTYSession* session = [self currentSession]; PTYSession* session = [self currentSession];
Loading
@@ -4501,6 +4510,12 @@ ITERM_WEAKLY_REFERENCEABLE
Loading
@@ -4501,6 +4510,12 @@ ITERM_WEAKLY_REFERENCEABLE
} }
   
// add tasks // 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" item = [[[NSMenuItem alloc] initWithTitle:@"Close Tab"
action:@selector(closeTabContextualMenuAction:) action:@selector(closeTabContextualMenuAction:)
keyEquivalent:@""] autorelease]; 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