From f2e09c9adcae6ecc5ea8a1d00a4052a6791079ee Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Tue, 13 May 2025 15:45:58 -0400 Subject: [PATCH] zellij function to do a gh run watch --- .../modules/nmasur/presets/programs/zellij.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/platforms/home-manager/modules/nmasur/presets/programs/zellij.nix b/platforms/home-manager/modules/nmasur/presets/programs/zellij.nix index 0ae2ab5..7fc21cb 100644 --- a/platforms/home-manager/modules/nmasur/presets/programs/zellij.nix +++ b/platforms/home-manager/modules/nmasur/presets/programs/zellij.nix @@ -34,6 +34,12 @@ in zellij pipe --plugin file:$(which zellij-switch.wasm) -- "--cwd $TARGET_DIR --layout default --session $(basename $TARGET_DIR)" ''; }; + gh-run = { + body = # fish + '' + zellij action new-pane --start-suspended -- gh run watch + ''; + }; }; }; @@ -115,6 +121,16 @@ in close_on_exit = true; }; }; + "bind \"Alt Shift w\"" = { + Run = { + _args = [ + "${pkgs.fish}/bin/fish" + "-c" + "gh-run" + ]; + close_on_exit = true; + }; + }; "bind \"Super Shift ]\"" = { GoToNextTab = { }; };