-
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
Include cwd in terminal title #29816
Comments
@imlgm this custom keybinding makes it easier to switch between editor and terminal: { "key": "ctrl+`", "command": "workbench.action.terminal.focus", "when": "!terminalFocus" }, |
@Tyriar I tried the custom keybinding, it did help a lot, thanks |
Related: #20676 (comment) |
is interesting (by default that shortcut just toggles terminals visibility, so that's fine using that shortcut) What I'd terribly like is that it not only focus the terminal, but focus the 'right' terminal, or opens one for that project (in the context of a multi-projects workspace) I guess you'll answer that this is the job for an extension, so I'll try to make one, because it'd be so practical for me What I'm after is a mix of I still think it's not a big feature, and would be worth adding in core |
|
Why is it not respecting the bash title by default? I'd expect it to have similar behaviour to iterm or iterm2, so I can put something like |
@llibicpep tracked in #22325 |
@llibicpep I just added a |
@ToniCipriani that's expected, it's whatever the shell sends to the terminal as the title. #22325 isn't meant to fix this issue generally. |
I just wanted to report that I enabled the PS1="\[\e]0;\W\a\]$PS1" This will not affect your terminal formatting, and it will use the current directory name as the Terminal title. Once you have saved the file, open a new terminal in VSCode to verify. |
@DesignByOnyx FYI that will change in the next version: |
I am looking forward to the automatic naming function of Terminal. |
We may want to do something like "terminal.integrated.title": "${processTitle}${sequenceTitle}${cwd}" One complication is that cwd would only work for mac and linux though. |
I still prefer the integrated terminal inherit the title from my system terminal. I kept the
|
thanks for adding the sequence title mode, but would like an option to just have the title be the current directory. I bet this is the desired default for the vast majority of users |
I think this would be a nice solution. |
So, the above solution setting on |
We'll want to look at reverting the change for #78438 which breaks the macOS cwd detection as our official product builds have the electron fix, just not oss as it's waiting on libuv/libuv#3257. |
Is the terminal title also able to use the variables that are referenced in the description examples given? It's less important to me that I'm running |
yep @ivandov title and description can have any of these properties now
|
Closing as the big follow ups are done. |
currently, vscode name the terminal with like 1: bash, 2:bash, after a while it's hard for to remember which one opening which directory. how about naming them by the opened folder or pah of the opened folder.
I also want there could be a simple way to switch focus between the terminal and workspace. currently, I have to use Command+J to hide the terminal or mouse clicking.
The text was updated successfully, but these errors were encountered: