old
  1layout {
  2    swap_tiled_layout name="default" {
  3        ui exact_panes=3 {
  4            pane split_direction="vertical" {
  5                filepicker size=40 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=40 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=40 name="picker"
 41            editor
 42        }
 43        help_bar size=1
 44    }
 45}
 46// keybinds from yazelix
 47// https://github.com/luccahuguet/yazelix/blob/main/zellij/layouts/yazelix.kdl
 48keybinds {
 49    shared {
 50        // Previously: Ctrl + o (in helix: jump_backward)
 51        bind "Ctrl e" {
 52            SwitchToMode "Session"
 53        }
 54        unbind "Ctrl o"
 55        // Previously: Ctrl + s (in helix: save_selection)
 56        // bind "Alt 1" { SwitchToMode "Scroll"; }
 57        bind "Ctrl y" {
 58            SwitchToMode "Scroll"
 59        }
 60        unbind "Ctrl s"
 61        // Previously: Alt + i (in helix: shrink_selection)
 62        bind "Alt w" {
 63            MoveTab "Left"
 64        }
 65        unbind "Alt i"
 66        // Previously: Alt + o (in helix: expand_selection)
 67        bind "Alt q" {
 68            MoveTab "Right"
 69        }
 70        unbind "Alt o"
 71        // Previously: Alt + n (in helix: select_next_sibling)
 72        bind "Alt m" {
 73            NewPane
 74        }
 75        unbind "Alt n"
 76        // Previously: Ctrl + b (in helix: move_page_up)
 77        bind "Alt 2" {
 78            SwitchToMode "Tmux"
 79        }
 80        unbind "Ctrl b"
 81        bind "Alt f" {
 82            ToggleFocusFullscreen
 83            SwitchToMode "Normal"
 84        }
 85    }
 86    session {
 87        // Exit session mode
 88        bind "Ctrl e" {
 89            SwitchToMode "Normal"
 90        }
 91        unbind "Ctrl o"
 92    }
 93    scroll {
 94        // Exit scroll mode
 95        // bind "Alt 1" { SwitchToMode "Normal"; }
 96        bind "Ctrl y" {
 97            SwitchToMode "Normal"
 98        }
 99        unbind "Ctrl s"
100    }
101    tmux {
102        // Exit tmux mode
103        bind "Alt 2" {
104            SwitchToMode "Normal"
105        }
106        unbind "Ctrl b"
107    }
108}