From a9076451ea34f746f04d284325fb11550461a5aa Mon Sep 17 00:00:00 2001 From: Daniel Lynn Date: Fri, 24 Mar 2023 00:49:24 -0500 Subject: [PATCH] Add explorer to IDE layout --- zellij/layouts/ide.kdl | 97 +++++++++++++++++------------------------- 1 file changed, 39 insertions(+), 58 deletions(-) diff --git a/zellij/layouts/ide.kdl b/zellij/layouts/ide.kdl index f9fd49c..03812c3 100644 --- a/zellij/layouts/ide.kdl +++ b/zellij/layouts/ide.kdl @@ -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 + } } } }