Skip to content
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 window-title per tab #6154

Open
Syntaxheld opened this issue Sep 18, 2024 · 4 comments
Open

setting window-title per tab #6154

Syntaxheld opened this issue Sep 18, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@Syntaxheld
Copy link

Is your feature request related to a problem? Please describe.
Previously in iTerm (and Terminal.app) I have been using the tab title (set via ESC]1;tabBEL) to identify a tab using a short identfier (e.g. ssh machine name, project name, ...) and have used the window title (set via ESC]2;stringBEL) to have more detailed information (e.g. current working directory, user, ...) for that specific tab. This works because window titles in these apps are specific to each tab, meaning that switching tabs shows a different window title for each tab.

However on WezTerm it seems that setting the window title this way (or even using wezterm cli set-window-title) sets the window title for all tabs in a given window. Meaning that switching to a new tab just shows the same title each time.

Describe the solution you'd like
A way to have unique window titles per tab.

Describe alternatives you've considered
The only other option I see right now to get the behaviour I want seems to be to use the SetUserVar custom terminal escape extension, and override the format-window-title event to use the user variable.

Other comments
It might be that I am using a wrong terminal escape sequence or some other issue ... but wezterm cli list --format json | jq '.[] | { title: .title , tab: .tab_title , window : .window_title }' does seem to confirm that changing the window title does change it for all tabs.

@Syntaxheld Syntaxheld added the enhancement New feature or request label Sep 18, 2024
@brushy501
Copy link

Hello Syntaxhel, you can look at the following link , you can find inspiration for your case there and i think someone has implemented what u are looking for there.

@brushy501
Copy link

Hello @Syntaxheld , if the my comment helped you resolve your issue then close the issue so the maintainer can work on adding more to this great terminal emulator.
Thanks.

@Syntaxheld
Copy link
Author

Hi @brushy501. I have looked at different configs that are posted under the link you provided. As far as I could tell, none solved the issue directly. Some relevant ideas, but as I had already posted, I know that for now using SetUserVar is a viable workaround. That's what the 👍 emoji was for ... ACKnowledging having seen & followed your post, but it did not solve the issue.

As I see it, the ticket is still a potential enhancement request for having something like a "window title is unique per tab VS per window" setting (or for telling me I'm using the feature incorrectly, or saying it won't get implemented).
If Wez wants to close it, fine with me - I can work around my issue.

P.S.: I agree, great terminal emulator & thanks for all the hard work, Wez!

@brushy501
Copy link

@Syntaxheld 👍, hopefully there is a way to get the functionality you want. I'm out of ideas. 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants