Windows Terminal Update: Preview 1910

Hey Habr! We are happy to announce that another update for Windows Terminal has been released! New features include dynamic profiles, cascading settings, updated UI, new launch options, and more. More under the cut!

As always, the Terminal is available for download at Microsoft Store, Microsoft Store for Business and GitHub.

Windows Terminal Update: Preview 1910

Dynamic profiles

Windows Terminal now automatically detects PowerShell Core and installed Windows Subsystem for Linux (WSL) distributions. In other words, if you install any distribution after this update, it will immediately be added to the profiles.json file.

Windows Terminal Update: Preview 1910

Note: if you don't want the profile to be displayed in the dropdown menu, you can set the option "hidden" on true profiles.json file.

"hidden": true

Cascading settings

Now the Terminal has an improved settings model. From now on, it comes with a defaults.json file that includes all default settings. If you want to see the contents of the file, then holding Alt, click the Settings button in the drop-down menu. The opened file is automatically generated and changes made to the file are ignored and overwritten. However, you can add as many custom settings as you like to the profiles.json file. If you want to reset the settings, then I recommend paying attention to great article Scott Hanselman (Scott Hanselman, @shanselman), which he posted on his blog.

If you add a new profile, schema, key binding, or global setting to profiles.json, then it will be considered as the added setting. If you create a new profile with the same GUID as an existing one, your new profile will replace the old one. If there is a key binding in the defaults.json file that you would like to deprecate, then set the key binding to null in profiles.json.

{
"command": null, "keys": ["ctrl+shift+w"] }

New launch options

Now you can set the Terminal to always run in full screen or set its initial position on the screen. The Terminal can be configured to run in full screen by adding the global parameter "launchMode". This parameter can be either "default"or "maximized".

"launchMode": "maximized"

If you want to set the initial position of the Terminal on the screen, then you need to add as a global parameter "initialPosition", and also specify the X and Y coordinates separated by commas. For example, if you want the Terminal to launch in the upper left corner of your main screen, then add the following entry to profiles.json:

"initialPosition": "0,0"

Note: If you are using multiple monitors and want the Terminal to run on the left or above the main monitor, then you will need to use negative coordinates.

Updated UI

The Terminal interface has become even better. Used in Terminal WinUI TabView has been updated to version 2.2. This version has better color contrast, rounded corners in the dropdown menu, and tab separators. In addition, now, as soon as you open a large number of tabs, you will be able to scroll through them using the buttons.

Windows Terminal Update: Preview 1910

Fixed bugs

  • You can now double-click on the tab bar to expand the window to full screen;
  • Fixed a bug that caused problems with copying and pasting in a new line;
  • HTML copy no longer leaves the clipboard open;
  • You can now use fonts whose names are longer than 32 characters;
  • When running two tabs at the same time, text distortion no longer occurs;
  • General stability improvements.

In conclusion

If you have any questions or just want to share your impressions about the Terminal, then feel free to write to Kayla (Kayla, @cinnamon_msft) on Twitter. In addition, if you have any problems or wishes, you can always contact us at GitHub. See you next month!

Source: habr.com

Add a comment