We're back with another update
Check it out below for the latest updates!
command palette
This is a new feature that allows you to search through all the commands available in Windows Terminal, similar to the one found in Visual Studio Code. You can call the command palette with Ctrl + Shift + P. If you want to change this key binding, you can add the command commandPalette into an array keybindings in settings.json.
{ "command": "commandPalette", "keys": "ctrl+shift+p" }
The command palette has two modes: action mode and command line mode. Action mode, which you will enter by default, lists all Windows Terminal commands. You can enter command line mode by typing >, and then entering any wt command to be called in the current window.
You can customize the actions you want to add to the command palette by entering the commands in the settings.json file. The new key bindings will be automatically applied in the command palette. Full documentation on adding your own commands can be found on our
Advanced tab switcher
We've added an advanced tab switcher to make it easier to switch between them. This function is built into the global setting by default useTabSwitcher. When you enable this command option nextTab ΠΈ prevTab start using the tab switcher.
The default key bindings are Ctrl + Tab ΠΈ Ctrl + Shift + Tab respectively.
"useTabSwitcher": true
Customize tab color
Now you can set your own tab color for each profile! To do this, just add the parameter tabColor to the selected profile in the "profiles" section (settings.json file) and specify a color value for it in hexadecimal format.
Tip: use the same shade as the background color for a nice seamless window!
New commands
We've added some new commands that you can add to your key bindings in the settings.json file. None of the commands listed below are bound by default.
commands wt and keybinding
It is now possible to execute wt.exe arguments with key bindings. This is done with the command wt... Property commandline specifies the command line arguments you want to invoke in the current window. More information about command line arguments wt can be found on our
// ΠΡΠ° ΠΊΠΎΠΌΠ°Π½Π΄Π° ΠΎΡΠΊΡΡΠ²Π°Π΅Ρ Π½ΠΎΠ²ΡΡ Π²ΠΊΠ»Π°Π΄ΠΊΡ Ρ PowerShell Π½Π° ΠΏΠ°Π½Π΅Π»ΠΈ, Π²Π΅ΡΡΠΈΠΊΠ°Π»ΡΠ½ΡΡ ΠΏΠ°Π½Π΅Π»Ρ Ρ ΠΏΡΠΎΡΠΈΠ»Π΅ΠΌ ΠΊΠΎΠΌΠ°Π½Π΄Π½ΠΎΠΉ ΡΡΡΠΎΠΊΠΈ Π² ΠΊΠ°ΡΠ°Π»ΠΎΠ³Π΅ C: ΠΈ Π³ΠΎΡΠΈΠ·ΠΎΠ½ΡΠ°Π»ΡΠ½ΡΡ ΠΏΠ°Π½Π΅Π»Ρ Ρ ΠΏΡΠΎΡΠΈΠ»Π΅ΠΌ Ubuntu.
{ "command": { "action": "wt", "commandline": "new-tab pwsh.exe ; split-pane -p "Command Prompt" -d C:\ ; split-pane -p "Ubuntu" -H" }, "keys": "ctrl+a" }
Sending input to the shell
If you want to send input to the shell using a keyboard shortcut, you can do so by using the command sendInput (thank
// ΠΡΠ° ΠΊΠΎΠΌΠ°Π½Π΄Π° ΠΏΠ΅ΡΠ΅ΠΌΠ΅ΡΠ°Π΅Ρ Π½Π°Π·Π°Π΄ ΠΏΠΎ ΠΈΡΡΠΎΡΠΈΠΈ ΠΎΠ±ΠΎΠ»ΠΎΡΠΊΠΈ.
{ "command": { "action": "sendInput", "input": "u001b[A" }, "keys": "ctrl+b" }
Tab Search
This new command will be a real lifesaver for you when you have many tabs open. You can now search within tabs with tabSearch.
{ "command": "tabSearch", "keys": "ctrl+c" }
Changing the color scheme
Now you can set the color scheme of the active window using the command setColorScheme.
{ "command": { "action": "setColorScheme", "colorScheme": "Campbell" }, "keys": "ctrl+d" }
In conclusion
All of our documentation can be found at
Source: habr.com