Commit c820292

HPCesia <me@hpcesia.com>
2025-06-09 15:42:50
feat(app): add zide
Zide is a combination of Zellij layouts and convenience bash scripts that creates an IDE-like layout environment. https://github.com/josephschmitt/zide
1 parent fed5718
Changed files (4)
home/base/tui/editors/zide/layouts/default.kdl
@@ -0,0 +1,48 @@
+layout {
+    tab hide_floating_panes=true {
+        floating_panes {
+            lazygit
+            zide_rename
+        }
+        tab_bar size=1
+        pane split_direction="vertical" {
+            filepicker size=40 name="picker"
+            editor
+        }
+        help_bar size=1
+    }
+
+    // TEMPLATES
+    pane_template name="lazygit" start_suspended=true {
+        command "lazygit"
+        x "10%"
+        y "5%"
+        width "80%"
+        height "80%"
+    }
+
+    pane_template name="filepicker" {
+        command "zide-pick"
+    }
+
+    pane_template name="editor" {
+        command "$EDITOR"
+    }
+
+    pane_template name="tab_bar" {
+        borderless true
+        plugin location="tab-bar"
+    }
+
+    pane_template name="help_bar" {
+        borderless true
+        plugin location="status-bar"
+    }
+
+    pane_template name="zide_rename" command="zide-rename" close_on_exit=true
+
+    new_tab_template {
+        pane
+        help_bar size=1
+    }
+}
\ No newline at end of file
home/base/tui/editors/zide/default.nix
@@ -0,0 +1,16 @@
+{
+  pkgs,
+  nur-hpcesia,
+  ...
+}: let
+  zide = nur-hpcesia.packages.${pkgs.system}.zide.overrideAttrs (oldAttrs: {
+    passthru =
+      oldAttrs.passthru
+      // {
+        layoutDir = ./layouts;
+        useYaziConfig = false;
+      };
+  });
+in {
+  home.packages = [zide];
+}
home/base/tui/editors/zide/README.md
flake.lock
@@ -170,11 +170,11 @@
         "treefmt-nix": "treefmt-nix"
       },
       "locked": {
-        "lastModified": 1749411920,
-        "narHash": "sha256-b8gH96+gNoLMudWbM5B3AuAnr1uvOmAIrCuq08BfDGI=",
+        "lastModified": 1749475228,
+        "narHash": "sha256-lqIPKi4ZDbKcAWl9C9Wi7wCewWuMmtb4+cgJXvyip6o=",
         "owner": "nix-community",
         "repo": "NUR",
-        "rev": "73d91ecf207a0796b50f5a60c824073363dc52ae",
+        "rev": "de1fc483b7ea026ef99e3a87adfdcf2f32baa95b",
         "type": "github"
       },
       "original": {
@@ -190,11 +190,11 @@
         ]
       },
       "locked": {
-        "lastModified": 1749475660,
-        "narHash": "sha256-KAiakTEO+b7mVX7mdR6RiUDV5DsoBcn+uug9qkhMq2s=",
+        "lastModified": 1749479292,
+        "narHash": "sha256-LXb2yqrGS11UlWVuysWDCEMIUgOHnx58fhbWv4l6ol0=",
         "owner": "HPCesia",
         "repo": "nur-packages",
-        "rev": "158b7718c9fea9ed09d6f825c978891b197baf8d",
+        "rev": "3228c3ed19a7ab712f3a228687b9a5af1effffa8",
         "type": "github"
       },
       "original": {