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