-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Support title from xterm.js #22325
Comments
@Lixire here's one of the PRs with some extra detail in what needs to happen #22454 (comment) |
This lets you use \[\033]0;\w\a\] in PS1 to set the dropdown value to the cwd for example Part of #22325
Just added a new setting for this, set:
To use the title from the VT sequence. |
@Tyriar thanks a lot! I just tried it, and it seems that it works, with a little issue though.
UPD: I just tried it on |
Sounds like the first event isn't getting fired, should get fixed before we remove experimental. |
Also it shows whole path with user@userdomain, would be perfect if I can choose to show only last folder name or set in workspace config the name of the terminal. Thanks a lot! |
I've been using vscode on Mac OS Mojave with bash and it seems to be working as @cr4ckm3 described (dropdown name is an equivalent of |
The setting is now |
From @pharmmd-rich in #22319
Open to PRs, we will want to handle
xterm.on('title', listener)
insideTerminalInstance
and use that over the pty name if it's set. Currently I'm assuming this will only fire if the user has set up a title they want to use, whether of not the event is guarenteed to fire on new terminals might change my thinking on how it works.The text was updated successfully, but these errors were encountered: