Windows Terminal 1.18 is available in Preview version and is packed with new features including detachable tabs and improvements to the AtlasEngine text rendering engine

2023-05-26 21:54:45

Detaching tabs

Yes ! We finally have tab detachment! This is a much requested feature since the birth of Terminal. Starting with Windows Terminal Preview 1.18, you will now be able to undock tabs in Windows Terminal.

Appear : https://devblogs.microsoft.com/comma…5/tear-tab.gif

You will also be able to move tabs from one terminal window to another.

Appear : https://devblogs.microsoft.com/comma…attach-tab.gif

Updating environment variables

Windows Terminal will now automatically reload environment variables when opening a new tab or pane! There’s no longer a need to completely close the terminal following installing something and changing the path – just open a new tab (or restart the current tab) and get started.

Also, you can now add environment variables in your settings.json. It can be done in defaults or in any profile.
In the example below, I have set two environment variables, both named MY_ENVIRONMENT_VARIABLEIn defaults and in my profile PowerShell :

JSON

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

"profiles": 
    
        "defaults": 
        
            "environment": 
                "MY_ENVIRONMENT_VARIABLE": "Hi from defaults!"
            ,
        ,
        "list": 
        [
            
                "guid": "574e775e-4f2a-5b96-ac1e-a2962a402336",
                "name": "PowerShell",
                "source": "Windows.Terminal.PowershellCore",
                "environment": 
                
                    "MY_ENVIRONMENT_VARIABLE": "Hi from PowerShell!"
                
            
        ]
    

The environment variables you set in defaults will be available for all your profiles. Environment variables that you set in a specific profile will only be available to that specific profile.

This means that if I print the value of MY_ENVIRONMENT_VARIABLE in my PowerShell profile I will see "Hi from PowerShell!".

If I print the value of MY_ENVIRONMENT_VARIABLE in another profile such as Command Prompt I will see "Hi from defaults!".

Right-click context menu (experimental)

This is an experimental feature that must be manually enabled. To enable it manually, add "experimental.rightClickContextMenu" : "true" in the section defaults of your section profiles of your settings.json :

JSON

1
2
3
4
5
6
7

"profiles": 
{
    "defaults": 
    
        "experimental.rightClickContextMenu": true
    ,
    ...

After enabling this feature, you will be able to see a context menu following right clicking on the shell in your terminal.

By default, the following options are available: Paste, Split Tab, Duplicate Tab, and Close Tab.
If you highlight some text and open the right-click context menu, you'll also see the Copy option next to Paste. If another pane is open, the Close Pane option is also available.

If our experimental shell integration feature is enabled, the Select Command and Select Output options are also available.

Appear : https://devblogs.microsoft.com/comma...ntegration.gif

Shell integration enable marks vary from shell to shell. To learn how to enable shell integration for your favorite shell, visit this tutorial on shell integration to learn more!

Atlas engine upgrades

Our experimental text rendering engine, theAtlasEngine, received major improvements in Windows Terminal Preview 1.18. This text renderer has been almost completely rewritten to support overlapping text and as a result will no longer cut italicized text, emojis or complex scripts. It will continue to carve box glyphs into their cells.
Below is a series of "before" and "following" images of the Atlas engine rewrites.

Here is a before image of Fira Code with the old AtlasEngine

Here is an following image of Fira Code with our new AtlasEngine in 1.18 Preview.

We can see that the old AtlasEngine shrinks the glyphs. In our new AtlasEngine, we now grate these glyphs correctly.

We also have a front image of the Code New Roman font as an example.

Here is an following image for the Code New Roman font with AtlasEngine in 1.18 Preview.

In the screenshots above, you can see how our rewrite ofAtlasEngine in version 1.18 Preview fixed rendering of power lines. We have no more weird spaces, no more cut glyphs and no more shrink glyphs. There are now also correctly overlapping glyphs in the APL game, ✔️ in the miscellaneous glyph range, and correct reversal of complex Unicode (without making glyphs larger than they are supposed to be) .

We also made sure that theAtlasEngine continues to support anime shadows, Han unification, and variant glyphs loc1 in Windows Terminal Preview 1.18. I'AtlasEngine will also be used to preview the appearance in Windows Terminal settings UIs for profiles for which it is enabled.

Mode portable

From version 1.17 of the stable channel, Windows Terminal can be deployed in "portable mode". Portable mode ensures that all data created and maintained by Windows Terminal is saved alongside the application so that it can be moved more easily to different environments.

Portable mode is supported by the non-package "ZIP" distribution. This is an officially supported mode of execution in which Windows Terminal stores its settings in a settings folder next to WindowsTerminal.exe. Portable mode is not supported by Windows Terminal distributions as a package or preinstallation kit.

Non-packaged and portable mode distributions of Windows Terminal allow you to use Terminal without installing it globally, for example on systems where you do not have permission to install MSIX packages or download software from the Microsoft Store. Portable mode lets you carry or archive a preconfigured installation of Windows Terminal and run it from a network share, cloud drive, or USB flash drive. Such an installation is standalone and does not interfere with other installed distributions of Windows Terminal.

Portable mode must be activated manually. After unpacking the Windows Terminal download, create a file named .portable ct of WindowsTerminal.exe.
Windows Terminal will automatically create a directory named settings following the launch of WindowsTerminal.exe. This directory settings stores both parameters and runtime state, such as window layouts.

Note that Windows Terminal will NOT automatically reload its settings or turn your terminal into portable mode right following file creation. .portable.
This change will only apply following restarting Terminal. You can check if you are in portable mode by selecting "About" from the drop-down menu.

From there, you can customize Windows Terminal to your liking, then copy the entire Windows Terminal folder to a USB drive or network share to use on the go or share with others!

1685141442
#Windows #Terminal #Preview #version #packed #features #including #detachable #tabs #improvements #AtlasEngine #text #rendering #engine

Leave a Replay