Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contextually Hiding Pane Borders (Single Pane No Border) #3704

Open
Jazztache opened this issue Oct 25, 2024 · 1 comment
Open

Contextually Hiding Pane Borders (Single Pane No Border) #3704

Jazztache opened this issue Oct 25, 2024 · 1 comment

Comments

@Jazztache
Copy link

Hello!

I would really like it if the option for auto-hiding borders was added to Zellij.
This feature would hide the border based on the user's preferences.

This is an update to the existing pane_frames option.
I got this idea because I wish the borders would turn off when there is one pane.

The setting would be a new suboption of ui.pane_frames, as to not conflict with the pane_frames [bool] option.

The options would be:

  • never makes panes bordered/divided always, based on the pane_frames bool. Zellij already has this.
  • always removes borders/dividers no matter what. Fill the space where the border was, allowing panes to be flush with each other for maximum space.
  • single-pane hides all borders and dividers if there is a single pane.

The main reason for this suggestion is the single-pane feature.
The use for this would be to let apps have two extra spaces of breathing room and have less visual clutter when using Zellij with one pane.
Then when you need a second pane, the borders come back.
This is also great if you mainly use Zellij for the tab bar and only need a pane for a quick command.

The option should be set out like so:

ui {
  pane_frames {
    pane_borderless "never" // Current, default Zellij behaviour.
    pane_borderless "always" // No dividers or borders, just have to of them next to each with no padding, margins, or anything to visually separate them.
    pane_borderless "single-pane" // Only show borders if (panes.count >= 2), otherwise no borders.
  }
}

Thankyou for your consideration!

@Jazztache Jazztache changed the title Zellij: Contextually Hiding Pane Borders (Single Pane No Border) Contextually Hiding Pane Borders (Single Pane No Border) Oct 25, 2024
@Zykino
Copy link
Contributor

Zykino commented Oct 29, 2024

There is no option like this.

But zjstatus (the status-bar imsnif recommended to you on the other thread) has a config for that. I talked to its maintainer, and they can see it being also exposed on a specific plugin. So people wanting only this functionality would be able to have it without overriding the default bars.

But in 0.40.1 it needs quite a few hacks. So it will be for next version (that had a lot of the required API for background plugins).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants