Update IDE layout, add IDE mode keybind

This commit is contained in:
Daniel Lynn 2023-03-23 16:24:42 -05:00
parent 43e9d0c710
commit 942b581944
Signed by: daniel
GPG Key ID: 28496A140E180A9D
2 changed files with 123 additions and 10 deletions

View File

@ -63,6 +63,12 @@ keybinds {
bind "8" { GoToTab 8; SwitchToMode "Normal"; }
bind "9" { GoToTab 9; SwitchToMode "Normal"; }
bind "Tab" { ToggleTab; }
bind "i" {
NewTab {
layout "/home/daniel/.config/zellij/layouts/ide.kdl"
}
SwitchToMode "Normal"
}
}
scroll {
bind "Ctrl s" { SwitchToMode "Normal"; }

View File

@ -1,22 +1,129 @@
layout {
tab_template name="ide" {
pane_template name="left-sidebar" split_direction="vertical" {
pane size="14%" borderless=true {
plugin location="zellij:strider"
}
children
}
pane_template name="bottom-console" split_direction="vertical" {
children
}
pane_template name="sidecar" split_direction="horizontal" {
children
}
tab_template name="compact-bar" {
pane size=1 borderless=true {
plugin location="zellij:compact-bar"
}
pane split_direction="vertical" {
pane size="13%" borderless=true {
plugin location="zellij:strider"
}
children
}
pane name="Editor" focus=true edit="./"
default_tab_template {
pane size=1 borderless=true {
plugin location="zellij:compact-bar"
}
pane size="28%" stacked=true {
pane
pane name="Git" command="gitui"
left-sidebar split_direction="vertical" {
children
}
}
ide
swap_tiled_layout name="ide" {
compact-bar max_panes=2 {
pane
}
compact-bar exact_panes=3 {
left-sidebar split_direction="vertical" {
pane
}
}
compact-bar exact_panes=4 {
left-sidebar split_direction="vertical" {
pane
}
bottom-console size="28%" split_direction="vertical" {
pane
}
}
compact-bar exact_panes=5 {
left-sidebar split_direction="vertical" {
pane
}
bottom-console size="28%" split_direction="vertical" {
pane
pane
}
}
compact-bar exact_panes=6 {
left-sidebar split_direction="vertical" {
pane
}
bottom-console size="28%" stacked=true {
pane
pane
pane
}
}
compact-bar exact_panes=7 {
left-sidebar split_direction="vertical" {
pane
sidecar size="24%" split_direction="horizontal" {
pane borderless=true
}
}
bottom-console size="28%" stacked=true {
pane
pane
pane
}
}
compact-bar exact_panes=8 {
left-sidebar split_direction="vertical" {
pane
sidecar size="24%" split_direction="horizontal" {
pane borderless=true
pane borderless=true
}
}
bottom-console size="28%" stacked=true {
pane
pane
pane
}
}
compact-bar min_panes=9 {
pane split_direction="vertical" {
pane
pane
pane
}
pane split_direction="vertical" {
pane
pane
pane
}
pane split_direction="vertical" {
pane
pane
pane
}
}
}
}