From 5e62cf1093c0d615906c39ddc936aea3ef401004 Mon Sep 17 00:00:00 2001 From: Tyler Mayoff Date: Fri, 7 Mar 2025 16:54:41 -0500 Subject: [PATCH] Skip check if hx is running in with helide --- dot_config/flake/home/helide/default.nix | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/dot_config/flake/home/helide/default.nix b/dot_config/flake/home/helide/default.nix index a9aa23d..1dbef18 100644 --- a/dot_config/flake/home/helide/default.nix +++ b/dot_config/flake/home/helide/default.nix @@ -20,23 +20,24 @@ # Get the running command in the current pane RUNNING_COMMAND=$(zellij action list-clients | awk 'NR==2 {print $3}') + echo $RUNNING_COMMAND > out.txt # Check if the command running in the current pane is helix (hx) - if echo "$RUNNING_COMMAND" | grep -q "hx$"; then + # if echo "$RUNNING_COMMAND" | grep -q "hx$"; then # The current pane is running helix, use zellij actions to open the file zellij action write 27 zellij action write-chars ":open $1" zellij action write 13 - else - # The current pane is not running helix, so open helix in a new pane - zellij action new-pane - sleep 0.3 - zellij action write-chars "hx $1" - zellij action write 13 + # else + # # The current pane is not running helix, so open helix in a new pane + # zellij action new-pane + # sleep 0.3 + # zellij action write-chars "hx $1" + # zellij action write 13 - # warning from before I got it working - # zellij action new-pane --name "WARNING" -- "echo" "please open helix in a pane right next to the sidebar (to the right of it) using 'hx path_to_file'" - fi + # # warning from before I got it working + # # zellij action new-pane --name "WARNING" -- "echo" "please open helix in a pane right next to the sidebar (to the right of it) using 'hx path_to_file'" + # fi ''; executable = true; };