Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • karan_m/iterm2
  • zhaochangqing/iterm2
  • joykeeper/iterm2
  • nleroux/iterm2
  • kenji21/iterm2
  • gagasegsegsegeg/iterm2
  • stanhu/iterm2
  • ivyfan/iterm2
  • DAddYE/iterm2
  • trave801/iterm2
  • lordrings/iterm2
  • tweekmonster/iterm2
  • imardaras/iterm2
  • DabeDotCom/iterm2
  • sherifamin83/iterm2
  • aquarecif/iterm2
  • visualrobots/iterm2
  • xmarianox/iterm2
  • doomsayer13/iterm2
  • vikdutt/iterm2
  • me36/iterm2
  • DevGrohl/iterm2
  • manigandan-rajasekar/iterm2
  • DWoodiwiss/iterm2
  • vti/iterm2
  • DamonQin/iterm2
26 results
Show changes
Loading
@@ -1176,7 +1176,7 @@ ITERM_WEAKLY_REFERENCEABLE
Loading
@@ -1176,7 +1176,7 @@ ITERM_WEAKLY_REFERENCEABLE
} }
   
- (void)tabTitleDidChange:(PTYTab *)tab { - (void)tabTitleDidChange:(PTYTab *)tab {
[self updateTouchBarIfNeeded]; [self updateTouchBarIfNeeded:NO];
} }
   
// Allow frame to go off-screen while hotkey window is sliding in or out. // Allow frame to go off-screen while hotkey window is sliding in or out.
Loading
@@ -1506,11 +1506,11 @@ ITERM_WEAKLY_REFERENCEABLE
Loading
@@ -1506,11 +1506,11 @@ ITERM_WEAKLY_REFERENCEABLE
} }
   
- (void)keyBindingsDidChange:(NSNotification *)notification { - (void)keyBindingsDidChange:(NSNotification *)notification {
[self updateTouchBarIfNeeded]; [self updateTouchBarIfNeeded:NO];
} }
   
- (void)colorPresetsDidChange:(NSNotification *)notification { - (void)colorPresetsDidChange:(NSNotification *)notification {
[self updateTouchBarIfNeeded]; [self updateColorPresets];
} }
   
- (IBAction)closeCurrentTab:(id)sender { - (IBAction)closeCurrentTab:(id)sender {
Loading
@@ -3659,7 +3659,7 @@ ITERM_WEAKLY_REFERENCEABLE
Loading
@@ -3659,7 +3659,7 @@ ITERM_WEAKLY_REFERENCEABLE
[self updateTabColors]; [self updateTabColors];
[self saveTmuxWindowOrigins]; [self saveTmuxWindowOrigins];
   
[self updateTouchBarIfNeeded]; [self updateTouchBarIfNeeded:NO];
} }
   
- (BOOL)fullScreen - (BOOL)fullScreen
Loading
@@ -3796,7 +3796,7 @@ ITERM_WEAKLY_REFERENCEABLE
Loading
@@ -3796,7 +3796,7 @@ ITERM_WEAKLY_REFERENCEABLE
[_didEnterLionFullscreen release]; [_didEnterLionFullscreen release];
_didEnterLionFullscreen = nil; _didEnterLionFullscreen = nil;
} }
[self updateTouchBarIfNeeded]; [self updateTouchBarIfNeeded:NO];
} }
   
- (void)windowWillExitFullScreen:(NSNotification *)notification - (void)windowWillExitFullScreen:(NSNotification *)notification
Loading
@@ -3832,7 +3832,7 @@ ITERM_WEAKLY_REFERENCEABLE
Loading
@@ -3832,7 +3832,7 @@ ITERM_WEAKLY_REFERENCEABLE
[self notifyTmuxOfWindowResize]; [self notifyTmuxOfWindowResize];
[self saveTmuxWindowOrigins]; [self saveTmuxWindowOrigins];
[self.window makeFirstResponder:self.currentSession.textview]; [self.window makeFirstResponder:self.currentSession.textview];
[self updateTouchBarIfNeeded]; [self updateTouchBarIfNeeded:NO];
} }
   
- (NSRect)windowWillUseStandardFrame:(NSWindow *)sender defaultFrame:(NSRect)defaultFrame { - (NSRect)windowWillUseStandardFrame:(NSWindow *)sender defaultFrame:(NSRect)defaultFrame {
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
@@ -4119,7 +4128,7 @@ ITERM_WEAKLY_REFERENCEABLE
Loading
@@ -4119,7 +4128,7 @@ ITERM_WEAKLY_REFERENCEABLE
if ([[PreferencePanel sessionsInstance] isWindowLoaded]) { if ([[PreferencePanel sessionsInstance] isWindowLoaded]) {
[self editSession:self.currentSession makeKey:NO]; [self editSession:self.currentSession makeKey:NO];
} }
[self updateTouchBarIfNeeded]; [self updateTouchBarIfNeeded:NO];
   
NSInteger darkCount = 0; NSInteger darkCount = 0;
NSInteger lightCount = 0; NSInteger lightCount = 0;
Loading
@@ -4456,7 +4465,7 @@ ITERM_WEAKLY_REFERENCEABLE
Loading
@@ -4456,7 +4465,7 @@ ITERM_WEAKLY_REFERENCEABLE
   
[self updateTabColors]; [self updateTabColors];
[self _updateTabObjectCounts]; [self _updateTabObjectCounts];
[self updateTouchBarIfNeeded]; [self updateTouchBarIfNeeded:NO];
   
if (_contentView.tabView.numberOfTabViewItems == 1 && if (_contentView.tabView.numberOfTabViewItems == 1 &&
_previousNumberOfTabs == 0 && _previousNumberOfTabs == 0 &&
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
@@ -5702,7 +5717,7 @@ ITERM_WEAKLY_REFERENCEABLE
Loading
@@ -5702,7 +5717,7 @@ ITERM_WEAKLY_REFERENCEABLE
if ([[PreferencePanel sessionsInstance] isWindowLoaded]) { if ([[PreferencePanel sessionsInstance] isWindowLoaded]) {
[self editSession:self.currentSession makeKey:NO]; [self editSession:self.currentSession makeKey:NO];
} }
[self updateTouchBarIfNeeded]; [self updateTouchBarIfNeeded:NO];
[self updateCurrentLocation]; [self updateCurrentLocation];
} }
   
Loading
@@ -7424,7 +7439,7 @@ ITERM_WEAKLY_REFERENCEABLE
Loading
@@ -7424,7 +7439,7 @@ ITERM_WEAKLY_REFERENCEABLE
@(_anchoredScreenNumber), @(_isAnchoredToScreen), self); @(_anchoredScreenNumber), @(_isAnchoredToScreen), self);
} }
} }
[self updateTouchBarIfNeeded]; [self updateTouchBarIfNeeded:NO];
} }
   
// Called when the parameter panel should close. // Called when the parameter panel should close.
Loading
Loading
Loading
@@ -355,6 +355,7 @@ static const int kMaxScreenRows = 4096;
Loading
@@ -355,6 +355,7 @@ static const int kMaxScreenRows = 4096;
if (userInitiated) { if (userInitiated) {
[_parser reset]; [_parser reset];
} }
[delegate_ terminalShowPrimaryBuffer];
[delegate_ terminalResetPreservingPrompt:userInitiated]; [delegate_ terminalResetPreservingPrompt:userInitiated];
} }
   
Loading
Loading
Loading
@@ -201,6 +201,9 @@ static const NSTimeInterval kOneMonth = 30 * 24 * 60 * 60;
Loading
@@ -201,6 +201,9 @@ static const NSTimeInterval kOneMonth = 30 * 24 * 60 * 60;
NSMutableDictionary<id, ITMNotificationRequest *> *_terminateSessionSubscriptions; NSMutableDictionary<id, ITMNotificationRequest *> *_terminateSessionSubscriptions;
NSMutableDictionary<id, ITMNotificationRequest *> *_layoutChangeSubscriptions; NSMutableDictionary<id, ITMNotificationRequest *> *_layoutChangeSubscriptions;
BOOL _layoutChanged; BOOL _layoutChanged;
// Location of mouse when the app became inactive.
NSPoint _savedMouseLocation;
} }
   
- (instancetype)init { - (instancetype)init {
Loading
@@ -866,6 +869,7 @@ static const NSTimeInterval kOneMonth = 30 * 24 * 60 * 60;
Loading
@@ -866,6 +869,7 @@ static const NSTimeInterval kOneMonth = 30 * 24 * 60 * 60;
DLog(@"Application resigning active. Disabling secure input."); DLog(@"Application resigning active. Disabling secure input.");
[self setSecureInput:NO]; [self setSecureInput:NO];
} }
_savedMouseLocation = [NSEvent mouseLocation];
} }
   
- (void)applicationWillHide:(NSNotification *)aNotification { - (void)applicationWillHide:(NSNotification *)aNotification {
Loading
@@ -883,7 +887,9 @@ static const NSTimeInterval kOneMonth = 30 * 24 * 60 * 60;
Loading
@@ -883,7 +887,9 @@ static const NSTimeInterval kOneMonth = 30 * 24 * 60 * 60;
   
// If focus follows mouse is on, find the window under the cursor and make it key. If a PTYTextView // If focus follows mouse is on, find the window under the cursor and make it key. If a PTYTextView
// is under the cursor make it first responder. // is under the cursor make it first responder.
if ([iTermPreferences boolForKey:kPreferenceKeyFocusFollowsMouse]) { NSPoint mouseLocation = [NSEvent mouseLocation];
if (!NSEqualPoints(mouseLocation, _savedMouseLocation) &&
[iTermPreferences boolForKey:kPreferenceKeyFocusFollowsMouse]) {
NSRect mouseRect = { NSRect mouseRect = {
.origin = [NSEvent mouseLocation], .origin = [NSEvent mouseLocation],
.size = { 0, 0 } .size = { 0, 0 }
Loading
@@ -2045,6 +2051,11 @@ static const NSTimeInterval kOneMonth = 30 * 24 * 60 * 60;
Loading
@@ -2045,6 +2051,11 @@ static const NSTimeInterval kOneMonth = 30 * 24 * 60 * 60;
[[TmuxDashboardController sharedInstance] showWindow:nil]; [[TmuxDashboardController sharedInstance] showWindow:nil];
} }
   
- (IBAction)openSourceLicenses:(id)sender {
NSURL *url = [[NSBundle mainBundle] URLForResource:@"Licenses" withExtension:@"txt"];
[[NSWorkspace sharedWorkspace] openURL:url];
}
#pragma mark - Private #pragma mark - Private
   
- (void)updateProcessType { - (void)updateProcessType {
Loading
Loading