Adding tabbar customization options, fixing tabhighlight, tabreverse, tabbar.active to work as intended.
#3954
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



There are 3 changes in this PR.
1. Adding tab customization options with
tabcharsandtabdist.[Edit: Replaced with number of characters intabdistcontrols the spacing between each tab.tabbarchars.div][Edit: renamed totabcharshave 3 key/value options:tabbarchars]active: Opening and closing characters for the current active tab. It would be[]to recreate the current default.inactive: Same asactivebut for inactive tabs.div: Dividing space2. Fixing
tabhighlightandtabreverseto work as intended.Previously, these options do not apply if
tabbarortabbar.activewere defined in the current colorscheme, which doesn't fit the description of the options.Now
tabreversewill work regardless,tabhighlightwill work iftabbar.activeis not defined, since doing a reverse on thetabbar.activedoes not guarantee it will "highlight" the current tab.As a result of this fix, the default for
tabreverseoption needs to be changed to false otherwise it change how most of the colorscheme looks.3. Fixing
tabbar.activecolorscheme applying to not applying to trailing spacesThis is what it looks like at the moment, which is wrong.

4.. Updating tab default options to look more modern
Previously, the active tab is wrapped with
[]and the spacing is 2.Now the active tab is highlighted [Edit: and wrapped with
[]], tabs are divided with the│character (Extended ascii, tested in my TTY) and spacing is reduced to 1 instead.I am happy to drop this change if people would prefer keeping the default look as it is.
I do think we should update how micro looks out of the box, given we have not changed the default for quite a long time.
Previously:default:[Edit: See below for updated comparisons]Now:default:[Edit: See below for updated comparisons]I have also tested the colorschemes in a TTY, no regression in terms of visibility.