WezTerm Configuration: Making Tab Width Fill the Tab Bar
I’ve finally taken the time to switch my terminal to WezTerm these past few days. However, I couldn’t find an option to make the tab width fill the entire window width. The closest I found was an issue: Add “stretch tabs to fill tab bar” option, but it seems to be discussing a fancy style tab bar?
I decided to handle it myself. The method is roughly:
- Store the tab columns into
wezterm.GLOBAL
1 when launching or resizing - Calculate the required padding on both sides in
format-tab-title
2
Here’s a summary of the configuration:
The final result looks something like this:
♥ Support Me