zellij-org / zellij

A terminal workspace with batteries included

Home Page:https://zellij.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

compact-bar: changing modes causes the tab list to shift

LechintanTudor opened this issue · comments

The tab list shifts its position based on how long the mode string is. Changing the mode from "NORMAL" to "TMUX" causes the tab list to shift to the left because "TMUX" has 2 characters less than "NORMAL".

Screenshot from 2024-04-18 17-58-36
NORMAL mode


Screenshot from 2024-04-18 17-58-41
TMUX mode

Hey, this was done to fix the inconsistent padding behavior:
#3260

the tab list shift was already happening before the change on mode names > 8 (see the "before" gif in the linked PR).

One way to avoid the shift could be to always fill the mode section with whitespaces, length equal to the largest mode then center it, but that might look "weird" on short names.

Thanks for the explanation, I see that this is working as intended.

Still, is it possible to change the mode text displayed in the bar? I would like to add some padding so that the tab list doesn't shift.

Still, is it possible to change the mode text displayed in the bar? I would like to add some padding so that the tab list doesn't shift.

no, you would have to fork the default compact-bar plugin to do that.