zellij-org/zellij

Cannot have nested borderless panes

Open

#2,243 opened on Mar 8, 2023

View on GitHub
 (0 comments) (1 reaction) (0 assignees)Rust (1,191 forks)batch import
help wantedsuspected bug

Repository metrics

Stars
 (32,593 stars)
PR merge metrics
 (Avg merge 42d 11h) (10 merged PRs in 30d)

Description

I would like to include the time in my status bar. My theme so far looks like:

layout {
    pane
    pane size=1 split_direction="vertical" {
        pane size=10 borderless=true {
            command "watch"
            args "-t" "-n" "1" "date" "+%H:%M"
        }
        pane borderless=true {
            plugin location="zellij:compact-bar"
        }
    }
}

So far so good, this displays the time as desired.

I wanted to get rid of the the border above, by adding borderless=true here:

pane size=1 split_direction="vertical" borderless=true {

However this gives the error

× Failed to parse Zellij configuration
    ╭─[<my layouts>/mycompact:2:1]
  2 │         pane
  3 │ ╭─▶     pane size=1 split_direction="vertical" borderless=true {
  4 │ │           pane size=10 borderless=true {
  5 │ │               command "watch"
  6 │ │               args "-t" "-n" "1" "date" "+%H:%M"
  7 │ │           }
  8 │ │           pane borderless=true {
  9 │ │               plugin location="zellij:compact-bar"
 10 │ │           }
 11 │ ├─▶     }
    · ╰──── Cannot have both properties (borderless) and nested children
 12 │     }

Desired behaviour would be no error and nested borderless panes.

Basic information

zellij --version: zellij 0.35.1 stty size: 50 190 uname: Linux

Contributor guide