Adding tabbar customization options, fixing tabhighlight, tabreverse, tabbar.active to work as intended.#3954
Conversation
99ad7c0 to
b78679b
Compare
b78679b to
7703366
Compare
|
Yeah, I am fine with only having
I suppose these options are controls on top of the color scheme, without having to copy the whole colorscheme just to change how a tab is highlighted or not.
One of the reasons I want to highlight active tab is because it is very obvious when there are a lot of tabs open.
As much as I agree with that, the alternative would be just to use a space character with a contrasting background color and the divider will look a bit thicker. Having a divider would make working with files that have long spaces in the filename easier.
Yeah that is true. I am fine with adding back |
7703366 to
42776dc
Compare
tabhighlight and tabreverse to work as intended.tabhighlight, tabreverse, tabbar.active to work as intended.



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 comments below for updated comparisons]Now:default:[Edit: See comments below for updated comparisons]I have also tested the colorschemes in a TTY, no regression in terms of visibility.