zellij: Cannot tell which pane is focused if there are 2 panes and `pane_frame` is disabled

In tmux if there are 2 panes in a tab, then the pane border will be split into two. One with the inactive pane color and one with active pane color. But on zellij it’s just the active pane color. This makes it impossible to tell which pane you have focused unless if you have pane_frame enabled.

https://user-images.githubusercontent.com/49095435/219952668-291490c6-8a35-47be-9ef5-d01656d078fc.mp4

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 6
  • Comments: 38 (7 by maintainers)

Most upvoted comments

I wonder if using ASCII characters for the line break between the two panes would be sufficient?

Something like

   [13:47] ~ top selected
 
└────────────────────────────────────────────────────────────────┘
   [13:47] ~ bottom unselected


   [13:47] ~ top unselected
 
┌────────────────────────────────────────────────────────────────┐
   [13:47] ~ bottom selected


                            ┐
                            │
                            │
[13:47] ~ left selected     │    [13:47] ~ right unselected
                            │
                            │
                            │
                            │
                            ┘
                                   │ 
                                   │ 
                                   │ 
  [13:47] ~ top left unselected    │
                                   │
┌──────────────────────────────────┤
  [13:47] ~ bottom left selected   │    [13:47] ~ right unselected
                                   │ 
                                   │ 
                                   │ 
                                   │ 
                                   ┘

maybe “dim” the unfocused panes? have less contrast, less contrast or a lighter/darker background?

I would vote strongly for dimming the inactive panes, similar to tmux, but I also think the point that someone made about accessibility might be valid. Ideally, multiple options would be available. I’d prioritize dimming the inactive panes. 😃

My philosophy is that it’s better to not implement a UI than to implement a confusing UI.

I’m advocating for dimming as an additional option, independent of line shapes - I think it would be great to have both

Hi,

I just tried zellij a couple of days ago, and I really miss something similar. I do not like wasting space on these separators and there is a better way (for my taste). In tmux there are window-style and window-active-style options, so You can set different background for those. I usually set the active window to black (which is taken from the terminal, actually dark grey) and other windows to #000000. This way the background color defines the active window/pane. I would love that in zellij too.

Thanks,

Dimming a pane feels like that’s a task for a GPU-accelerated program. I’d like my terminal to stay text.

Tmux-like display-panes requires an action, I’d call that solution sub-optimal. IMO, line shape via some char - would be the optimal solution here.

I disagree with your premise that there is a globally optimal solution. Lots of people in this thread have expressed their support for dimming inactive panes, so for many (me included) this would be optimal. I wouldn’t need a line-shape solution, but I’m not arguing against that as a solution for others - again, I’d like to see both!

I think a way to dim unfocused panes, separate to theming, would be ideal - maybe a standalone unfocused_pane_dim config option which could be e.g. < 1 to dim unfocused panes (for light themes) or > 1 to brighten them (for dark themes). Here’s how I have tmux set up, which I guess would correspond to a value of something like 1.2 as unfocused panes are slightly brighter.

Image

I’m happy to have a crack at implementing this - any thoughts or objections?

Just to confirm: Zellij doesn’t currently have a way to set the active pane’s background colour? We’re waiting on https://github.com/zellij-org/zellij/issues/2297 for that?

My bad, should have read the thread more carefully. Right now i have something working but it mimics tmux behavior and needs more work anyway. Going to wrap some things up and push it to GitHub then. I could give the proposed solution from #2180 a try nonetheless, but it would probably take some time. Sorry for the confusion!

Hey, i’m currently trying to implement this and i was wondering whether it should be a settable option for which part of the boundarie relates to which pane?

maybe “dim” the unfocused panes? have less contrast, less contrast or a lighter/darker background?

This introduces potential accessibility issues, as not all users may be able to distinguish them.

I think the logic here is supposed to be that (at least in western/LTR cultures) you read left to right, top to bottom.

So, in this case as we don’t have top/bottom indicators they connect left and up (the start) with right and bottom (the end).

How do you know if up is right or left? This always bothered me in tmux.