jabirali / tmux-powertab

Solarized-based tmux theme with a tab line
MIT License
4 stars 2 forks source link

Tabs on bottom #2

Open durka opened 5 months ago

durka commented 5 months ago

Hi, great plugin. What do you think about an option to put the tabs at the bottom of the window?

jabirali commented 5 months ago

Hi! Happy you're enjoying it :)

I'm not really using it myself anymore, so I'm not planning to extend it at the moment since it requires a bit of testing to ensure nothing breaks. However, I'd be happy to merge a PR implementing such a feature, if you test it out a bit and find that it doesn't break anything 😉

I think only two minor changes are required to support this, from a quick look at the source code (feel free to fork the repo and try these):

If you just want this for yourself, that should do the trick. If you wish to submit a PR that adds support for this, we additionally need a setting that lets a user select whether they want the current behavior (tabs on top) or default behavior (tabs on bottom) – alternatively, we could just read the user's status-position setting, and use that to select powerline glyphs.

Happy hacking!