den
  1layout {
  2    swap_tiled_layout name="default" {
  3        ui exact_panes=3 {
  4            pane split_direction="vertical" {
  5                filepicker size=30 name="picker"
  6                editor
  7            }
  8        }
  9    }
 10    swap_tiled_layout name="more_pane" {
 11        ui min_panes=4 {
 12            pane split_direction="vertical" {
 13                filepicker size=30 name="picker"
 14                pane split_direction="horizontal" {
 15                    editor
 16                    pane stacked=true {
 17                        children
 18                    }
 19                }
 20            }
 21        }
 22    }
 23    pane_template name="filepicker" {
 24        command "zide-pick"
 25    }
 26    pane_template name="editor" {
 27        command "$EDITOR"
 28    }
 29    pane_template name="help_bar" {
 30        borderless true
 31        plugin location="status-bar"
 32    }
 33    pane_template name="zide_rename" command="zide-rename" close_on_exit=true
 34    tab_template name="ui" {
 35        children
 36        help_bar size=1
 37    }
 38    default_tab_template {
 39        pane split_direction="vertical" {
 40            filepicker size=30 name="picker"
 41            editor
 42        }
 43        help_bar size=1
 44    }
 45}
 46pane_frames false
 47// keybinds from yazelix
 48// https://github.com/luccahuguet/yazelix/blob/main/zellij/layouts/yazelix.kdl
 49keybinds {
 50    shared {
 51        // Previously: Ctrl + o (in helix: jump_backward)
 52        bind "Ctrl e" {
 53            SwitchToMode "Session"
 54        }
 55        unbind "Ctrl o"
 56        // Previously: Ctrl + s (in helix: save_selection)
 57        // bind "Alt 1" { SwitchToMode "Scroll"; }
 58        bind "Ctrl y" {
 59            SwitchToMode "Scroll"
 60        }
 61        unbind "Ctrl s"
 62        // Previously: Alt + i (in helix: shrink_selection)
 63        bind "Alt w" {
 64            MoveTab "Left"
 65        }
 66        unbind "Alt i"
 67        // Previously: Alt + o (in helix: expand_selection)
 68        bind "Alt q" {
 69            MoveTab "Right"
 70        }
 71        unbind "Alt o"
 72        // Previously: Alt + n (in helix: select_next_sibling)
 73        bind "Alt m" {
 74            NewPane
 75        }
 76        unbind "Alt n"
 77        // Previously: Ctrl + b (in helix: move_page_up)
 78        bind "Alt 2" {
 79            SwitchToMode "Tmux"
 80        }
 81        unbind "Ctrl b"
 82        bind "Alt f" {
 83            ToggleFocusFullscreen
 84            SwitchToMode "Normal"
 85        }
 86    }
 87    session {
 88        // Exit session mode
 89        bind "Ctrl e" {
 90            SwitchToMode "Normal"
 91        }
 92        unbind "Ctrl o"
 93    }
 94    scroll {
 95        // Exit scroll mode
 96        // bind "Alt 1" { SwitchToMode "Normal"; }
 97        bind "Ctrl y" {
 98            SwitchToMode "Normal"
 99        }
100        unbind "Ctrl s"
101    }
102    tmux {
103        // Exit tmux mode
104        bind "Alt 2" {
105            SwitchToMode "Normal"
106        }
107        unbind "Ctrl b"
108    }
109}