micro icon indicating copy to clipboard operation
micro copied to clipboard

add a global option to always show the tab bar

Open 1ynxy opened this issue 2 months ago • 1 comments

This might not be the perfect way to solve this problem, but I figured that I would dive into the codebase and give it a go before asking for another feature request for something this small.

I think, if we're allowing customisability of the tab bar (reversing colour-theme, etc), that we should also allow the option to set the tab bar to "always show". This pull does that.

Discussion encouraged.

1ynxy avatar Oct 09 '25 17:10 1ynxy

IMHO not a bad feature, why not.

The name tabalwaysshow may be a bit of a mouthful... Maybe just tabalways? (Better suggestions are welcome.)

Also, this PR doesn't work quite well in the case when this option is enabled or disabled at runtime via set tabalwaysshow on or set tabalwaysshow off (when there is just one tab open). It can be fixed as follows:

--- a/internal/action/command.go
+++ b/internal/action/command.go
@@ -586,7 +586,7 @@ func doSetGlobalOptionNative(option string, nativeValue any) error {
 		for _, b := range buffer.OpenBuffers {
 			b.UpdateRules()
 		}
-	} else if option == "infobar" || option == "keymenu" {
+	} else if option == "infobar" || option == "keymenu" || option == "tabalwaysshow" {
 		Tabs.Resize()
 	} else if option == "mouse" {
 		if !nativeValue.(bool) {

dmaluka avatar Dec 01 '25 00:12 dmaluka