iTerm2 icon indicating copy to clipboard operation
iTerm2 copied to clipboard

Setup for custom title delay settings.

Open clementpadovani opened this issue 8 years ago • 6 comments

Added the possibility to change the delay for the app to set a tab’s title.

This can be achieved by running the following command:

defaults write com.googlecode.iterm2 DelayedTitleCustomDelayTimeInterval -float 0.5

If no value is set in the defaults then the default value of 0.1 is used.

clementpadovani avatar May 01 '16 15:05 clementpadovani

Coverage Status

Coverage increased (+0.002%) to 32.335% when pulling 494d0372f2f6fb23676d20bf1aa045e8c9d8d63c on ClementPadovani:feature/tabTitleCustomDelay into 29b75f70e4366625c6ca105487faea2c90e1dea3 on gnachman:master.

coveralls avatar May 01 '16 15:05 coveralls

Out of curiosity why would you want to do this?

gnachman avatar May 03 '16 05:05 gnachman

Hey @gnachman,

I missed the instant process name change after migrating from Terminal to iTerm. And other might want a lower/higher delay time.

clementpadovani avatar May 03 '16 05:05 clementpadovani

Coverage Status

Coverage increased (+0.3%) to 32.344% when pulling 2aeb9a5b668e9ac533f25a4a27ebeb5d1e8b4385 on ClementPadovani:feature/tabTitleCustomDelay into 4e1f5faee9b7ac9dc3873fad932620197988c365 on gnachman:master.

coveralls avatar May 03 '16 13:05 coveralls

I'd be surprised if a .1 second delay were perceptible. The lion's share of the delay is that Terminal does some undocumented magic to get the process name instantly, whereas we have to poll periodically every 1/2 second. If you really want to speed it up increase the polling interval in ProcessCache.m line 353, but it'll cost you some CPU.

gnachman avatar May 03 '16 21:05 gnachman

Alright, thanks @gnachman for your help. I’ll try messing around with ProcessCache when I have more time.

TBH it’s really a detail and it’s some of my classmates noticed the difference when switching from the stock term to iTerm that’s all.

clementpadovani avatar May 04 '16 07:05 clementpadovani