zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
20.69k stars 640 forks source link

Tab bar customization #705

Open prscoelho opened 3 years ago

prscoelho commented 3 years ago

Once plugin customization lands, I was thinking that tab bar customization would be a pretty nice feature. Tmux currently lets you configure tab titles. Something like:

title: "{index}: {program}"
separator:  ""
collapsed: ["+{count} ->", "<- +{count}"]

This would allow people to customize things like turning collapsed tabs on/off, or if they just want a simple character displaying that there's collapsed tabs, what info to display in tab titles, which separator to use.

Simplified-ui and default would then just be specific configurations.

I don't know what should happen if someone renames a tab however. Maybe a boolean variable in TabInfo that notes that user has renamed a tab and use that as title instead of the customized string.

EDIT: Actually tab name in TabInfo would be by default an empty string, and if it's not then we know it has been renamed. The config for default would be title: "Tab #{index}"

LandonSchropp commented 1 year ago

Thanks for creating this great tool! I thought I'd share a few of the things I'd like to be able to customize about the tab bar in case it's relevant.

Here's what I'd love to be able to customize: