From eba365fe98467c3b75daa55bda58f3ba8abf8e8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Sat, 25 Nov 2023 12:54:27 +0300 Subject: [PATCH] fix(layout): update the Zellij layout to use KDL format (#3) --- alpkg | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/alpkg b/alpkg index 061752e..f439897 100755 --- a/alpkg +++ b/alpkg @@ -48,7 +48,7 @@ create-pkg-script() { pkg="" lint_pkg=false edit_pkg=true - layout_file="$PACKAGE_DIR/pkg-edit-layout.yml" + layout_file="$PACKAGE_DIR/pkg-edit-layout.kdl" while getopts ":lhe" opt; do case ${opt} in e) @@ -83,20 +83,16 @@ create-pkg-script() { } create-zellij-layout() { - cat <<-'_EOF_' >"$CHROOT_DIR/$PACKAGE_DIR/pkg-edit-layout.yml" - # https://zellij.dev/old-documentation/layouts.html - tabs: - - direction: Vertical - parts: - - direction: Vertical - focus: true - split_size: - Percent: 50 - run: - command: { cmd: vim, args: ["APKBUILD"] } - - direction: Vertical - split_size: - Percent: 50 + cat <<-'_EOF_' >"$CHROOT_DIR/$PACKAGE_DIR/pkg-edit-layout.kdl" + // https://zellij.dev/documentation/layouts + layout { + pane split_direction="vertical" { + pane focus=true command="vim" { + args "APKBUILD" + } + pane + } + } _EOF_ }