Add explorer to IDE layout

This commit is contained in:
Daniel Lynn 2023-03-24 00:49:24 -05:00
parent 077395261a
commit a9076451ea
Signed by: daniel
GPG Key ID: 655C07B9B3DDC88B

View File

@ -1,70 +1,52 @@
layout {
pane_template name="sidebar-pane" {
pane size="24%" split_direction="horizontal" {
pane_template name="explorer" {
pane split_direction="vertical" {
pane size="14%" borderless=true command="exa" {
args "--color=always" "--icons" "--git" "--tree" "-L2"
}
children
}
}
pane_template name="sidebar-pane" {
pane size="24%" split_direction="horizontal" { children; }
}
pane_template name="console-pane" {
pane size="28%" split_direction="vertical" {
children
}
pane size="28%" split_direction="vertical" { children; }
}
pane_template name="stacked-console-pane" {
pane size="28%" stacked=true {
children
}
pane size="28%" stacked=true { children; }
}
tab_template name="ide-tab" {
pane size=1 borderless=true {
plugin location="zellij:compact-bar"
}
pane size=1 borderless=true { plugin location="zellij:compact-bar"; }
children
}
default_tab_template {
pane size=1 borderless=true {
plugin location="zellij:compact-bar"
}
children
pane size=1 borderless=true { plugin location="zellij:compact-bar"; }
explorer { pane; }
}
swap_tiled_layout name="ide" {
ide-tab max_panes=2 {
pane
}
ide-tab exact_panes=3 {
pane
console-pane split_direction="vertical" size="28%" {
pane
}
ide-tab max_panes=3 {
explorer { pane; }
}
ide-tab exact_panes=4 {
pane
console-pane split_direction="vertical" size="28%" {
pane
pane
}
explorer { pane; }
console-pane split_direction="vertical" size="28%" { pane; }
}
ide-tab exact_panes=5 {
pane
stacked-console-pane stacked=true size="28%" {
pane
explorer { pane; }
console-pane split_direction="vertical" size="28%" {
pane
pane
}
}
ide-tab exact_panes=6 {
pane split_direction="vertical" {
pane
sidebar-pane size="24%" {
pane borderless=true
}
}
explorer { pane; }
stacked-console-pane stacked=true size="28%" {
pane
pane
@ -72,12 +54,9 @@ layout {
}
}
ide-tab exact_panes=7 {
pane split_direction="vertical" {
explorer split_direction="vertical" {
pane
sidebar-pane size="24%" {
pane borderless=true
pane borderless=true
}
sidebar-pane size="24%" { pane borderless=true; }
}
stacked-console-pane stacked=true size="28%" {
pane
@ -86,20 +65,22 @@ layout {
}
}
ide-tab min_panes=8 {
pane split_direction="vertical" {
pane
pane
pane
}
pane split_direction="vertical" {
pane
pane
pane
}
pane split_direction="vertical" {
pane
pane
pane
explorer {
pane split_direction="vertical" {
pane
pane
pane
}
pane split_direction="vertical" {
pane
pane
pane
}
pane split_direction="vertical" {
pane
pane
pane
}
}
}
}