From 444bcd45c14e5ddb891b1fedcd1ed5ffa0a196c8 Mon Sep 17 00:00:00 2001 From: Collin Williams <96917990+bluedragon1221@users.noreply.github.com> Date: Fri, 11 Jul 2025 16:08:14 +0000 Subject: new behavior of broot minibuffer file opener thingy (details) If there is already a pane that looks like "hx {file}", switch to that pane If the current pane is a shell (bash or fish), send-keys "hx {file}" If the current pane is helix, send-keys ":o {file}" Otherwise, open the file in a new pane Prereq changes: hx has to change its own title to "^hx {file}" when launched fish has to have a title of "^fish.*" --- modules/terminal/system/programs/helix.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/terminal/system/programs/helix.nix') diff --git a/modules/terminal/system/programs/helix.nix b/modules/terminal/system/programs/helix.nix index 3e9ac23..c45ba81 100644 --- a/modules/terminal/system/programs/helix.nix +++ b/modules/terminal/system/programs/helix.nix @@ -138,7 +138,7 @@ in # rename window to filename when editing file helix = self.writeShellScriptBin "hx" '' file="$1" - printf '\033]2;%s\033\\' "hx $(basename "$file")" + printf '\033]2;%s\033\\' "hx $file" exec ${super.helix}/bin/hx "$@" ''; }) -- cgit v1.3.1