Introduction
In this article, we'll explore how to enable Most Recently Used (MRU) tab switching behavior in the Windows Terminal. The MRU tab switching feature is a convenient way to quickly switch between your most frequently used terminal tabs.
Background
Prior to 2020, the Windows Terminal did not have MRU tab switching behavior natively. However, with the introduction of a new codebase around 2020, the feature became available and has since been widely adopted by users.
Enabling MRU Tab Switching
To enable MRU tab switching in Windows Terminal, follow these steps:
- Open the Windows Terminal settings by clicking on the downward-facing arrow next to the "+" button and selecting "Settings".
- In the settings tab, search for "mru" in the search bar.
- Click on the "mru" dropdown and select "Enabled".
How MRU Tab Switching Works
When MRU tab switching is enabled, the Windows Terminal will automatically switch to the most recently used tab when you open a new terminal window. This behavior can be very convenient for users who frequently switch between multiple terminal tabs.
Customizing MRU Tab Switching
While the default MRU tab switching behavior is useful for most users, there are several customization options available. For example, you can change the number of tabs that are included in the MRU list by modifying the following setting in your JSON settings file:
{
"mru": {
"limit": 10
}
}
In this example, the MRU list is limited to 10 tabs.
Benefits of MRU Tab Switching
Enabling MRU tab switching in the Windows Terminal can provide several benefits for users, including:
- Improved productivity - quickly switching between frequently used terminal tabs saves time and effort.
- Enhanced user experience - the MRU tab switching behavior is intuitive and easy to use.
- Customizable - the MRU tab switching behavior can be customized to fit specific user needs.
To enable MRU tab switching in the Windows Terminal, simply open the settings tab and search for "mru". Then, click on the "mru" dropdown and select "Enabled". The default MRU tab switching behavior can be customized by modifying the JSON settings file. Overall, enabling MRU tab switching can provide several benefits for users, including improved productivity and a customizable user experience.