Windows Terminal Preview 1.3: command palette, tab switcher and more

We're back with another update Windows Terminal Previewwhich will appear in Windows Terminal in September. Both builds of Windows Terminal can be downloaded from the Microsoft Store or from the releases page at GitHub.

Check it out below for the latest updates!

Windows Terminal Preview 1.3: command palette, tab switcher and more

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 site with documentation.

Windows Terminal Preview 1.3: command palette, tab switcher and more

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

Windows Terminal Preview 1.3: command palette, tab switcher and more

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.

Windows Terminal Preview 1.3: command palette, tab switcher and more

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 site with documentation.

// Π­Ρ‚Π° ΠΊΠΎΠΌΠ°Π½Π΄Π° ΠΎΡ‚ΠΊΡ€Ρ‹Π²Π°Π΅Ρ‚ Π½ΠΎΠ²ΡƒΡŽ Π²ΠΊΠ»Π°Π΄ΠΊΡƒ с 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 @lhecker!).

// Π­Ρ‚Π° ΠΊΠΎΠΌΠ°Π½Π΄Π° ΠΏΠ΅Ρ€Π΅ΠΌΠ΅Ρ‰Π°Π΅Ρ‚ Π½Π°Π·Π°Π΄ ΠΏΠΎ истории ΠΎΠ±ΠΎΠ»ΠΎΡ‡ΠΊΠΈ.
{ "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" }

Windows Terminal Preview 1.3: command palette, tab switcher and more

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 docs.microsoft.com. If you have any questions or would like to share your opinion feel free to email Kayla (Kayla, @cinnamon_msft) on Twitter. Also, if you want to make a suggestion to improve the Terminal or report a bug in it, then please contact the Windows Terminal repository for this. GitHub.

Windows Terminal Preview 1.3: command palette, tab switcher and more

Source: habr.com

Add a comment