-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting the window title on tab switches #186
Comments
Thanks for posting this. This sounds like it would be a good improvement.
Yeah, that sounds reasonable. Do you want to send a PR for this?
There really aren't that many callbacks yet. I've been adding them on an as-need basis when users request them. Here's the four functions that deal with changing tabs. Would you want to send a PR adding a new callback here? Lines 136 to 152 in d0f8c9a
Although it sounds like if the window title functionality was available, you wouldn't personally need this hook here. |
So after diving into the source for a bit, i found that one can not only set the custom config, but also custom hooks, and so I came up with this little snippet to set the window title to what the shell desires.
What I couldn't figure out yet is what callback to use to also set the window title to the current tab title when you change tabs. I'd be very thankful for any ideas regarding that.
Also I think the above config might be a good default. I think most other other terminal emulators behave this way.
The text was updated successfully, but these errors were encountered: