-
Notifications
You must be signed in to change notification settings - Fork 29k
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
workbench.action.terminal.rename
should accept name as an argument
#82105
Comments
(Experimental duplicate detection) |
Have you considered using an extension like https://marketplace.visualstudio.com/items?itemName=fabiospampinato.vscode-terminals for this? |
@Tyriar no, I am using custom fork of Fortunatelly, it solves issues with providing some dynamic input at right time like passphrase (because I couldn't establish SSH without passphrase prompt, unluckily, so I have to use bad technique atm), running console program on remote computer after SSH login, REPL commands to 3DX MQL. Thank you for advising |
I think I know how to make rename command have simple |
@perceptron007 right now the rename command is defined here: vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.ts Lines 1039 to 1067 in 8a80677
I think we need to convert it into a vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.ts Lines 301 to 325 in 8a80677
|
@perceptron007 Sorry for late response. I made some changes to code, please review it and cover with some test if needed. I'm not ready to make pull request yet, so I derive it to you, guys. |
@vintprox I would have thought you'd need to convert it to a We want this keybinding to be able to rename the terminal by executing it: {
"key": "cmd+shift+h",
"command": "workbench.action.terminal.rename",
"args": {
"title": "My term"
}
} Also you can get intellisense for |
microsoft#82105 Feature missing after commit: entry terminal instance probably is not being considered anymore. Requires review.
@Tyriar |
@vintprox hmm, we may just need to make a new command just like |
You are right! I completely forgot what pull requests are for here. |
Hello @vintprox did you create the PR ? is this issue resolved ? |
Uh-oh, I'm kind of busy right now and cannot find a right time. You can make it, if you want to solve the issue! |
Hey, if this issue is open I'd like to pick it up! |
Of course, why not, proceed! @petevdp |
…mmand #82105 Add Terminal Rename Command
Currently,
workbench.action.terminal.rename
command doesn't accept any argument. I wanted to make macros that renames current terminal after performing some other actions.At the moment, it requires user prompt interaction.
vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.ts
Lines 1053 to 1066 in f0faef0
The text was updated successfully, but these errors were encountered: