From 7d9c1f7d764db93e8958a4267a86b869eae172ed Mon Sep 17 00:00:00 2001 From: will king Date: Fri, 15 Nov 2024 10:40:06 -0800 Subject: [PATCH] adding zellij layout because it is helpful --- Latex/Paper/jmp_layout.kdl | 84 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 Latex/Paper/jmp_layout.kdl diff --git a/Latex/Paper/jmp_layout.kdl b/Latex/Paper/jmp_layout.kdl new file mode 100644 index 0000000..1cbc57d --- /dev/null +++ b/Latex/Paper/jmp_layout.kdl @@ -0,0 +1,84 @@ +layout { + tab name="Main and Compile" cwd="~/research/PhD_Deliverables/jmp/Latex/Paper/" hide_floating_panes=true focus=true { + // This tab is where I manage main from. + // it opens up Main.txt for my JMP, opens the pdf in okular (in a floating tab), and then get's ready to build the pdf. + pane size=1 borderless=true { + plugin location="tab-bar" + } + pane split_direction="vertical" { + pane edit="Main.tex" focus=true // This is the editor + + pane split_direction="horizontal" { + + // this is the compilation window + pane size="60%" command="compiletex" { + args "Main.tex" + start_suspended true + } + + // This is the ls of sections + pane size="35%" command="ls"{ + args "sections/" + } + } + } + floating_panes { + // here is where I run okular from, it is auto hidden + pane command="okular" { + args "Main.pdf" + } + } + pane size=2 borderless=true { + plugin location="status-bar" + } + } + + tab name="sections" cwd="~/research/PhD_Deliverables/jmp/Latex/Paper/sections/" { + pane size=1 borderless=true { + plugin location="tab-bar" + } + pane split_direction="vertical" { + pane + pane stacked=true { + pane + pane + pane + pane + pane + pane + pane + pane + pane + } + } + pane size=2 borderless=true { + plugin location="status-bar" + } + } + + tab name="git" cwd="~/research/PhD_Deliverables/jmp/Latex/Paper/" { + pane size=1 borderless=true { + plugin location="tab-bar" + } + + pane split_direction="vertical" { + pane split_direction="horizontal" { + pane command="watch" { + args "--color" "git status" + // requires `git config --global color.status always` to be set + } + pane size="30%" { + focus true + } + } + + pane command="git" { + args "log" "-n 10" "--all" "--oneline" "--graph" "--stat" "--decorate" + } + } + + pane size=2 borderless=true { + plugin location="status-bar" + } + } +}