Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: avoid duplication in yazelix.kdl #7

Open
luccahuguet opened this issue Jun 28, 2024 · 0 comments
Open

Refactor: avoid duplication in yazelix.kdl #7

luccahuguet opened this issue Jun 28, 2024 · 0 comments

Comments

@luccahuguet
Copy link
Owner

Clearly, there is code duplication. But I have yet to find a way to fix it, basically because I could not use a tab_template inside default_tab_template

layout {
    tab_template name="ui" {
        pane size=1 borderless=true {
           plugin location="zellij:tab-bar"
        }
        children
        pane size=1 borderless=true {
           plugin location="zellij:status-bar"
        }
    }

    default_tab_template {
        pane size=1 borderless=true {
           plugin location="zellij:tab-bar"
        }
        pane split_direction="vertical" {
            pane name="sidebar" {
                command "env"
                args "YAZI_CONFIG_HOME=~/.config/zellij/yazi/sidebar" "yazi"
            	size "20%"
            }
            pane {
                focus true
            }
        }
        pane size=1 borderless=true {
           plugin location="zellij:status-bar"
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant