aboutsummaryrefslogtreecommitdiff
path: root/modules/terminal/system/programs/helix.nix
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-07-11 16:08:14 +0000
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-07-11 16:08:14 +0000
commit444bcd45c14e5ddb891b1fedcd1ed5ffa0a196c8 (patch)
treed8308b420ed0ba8237d951a88c540db55b6d47ed /modules/terminal/system/programs/helix.nix
parentf75fd7bdbaacab04b5f4dd4042ad9e6493b3570b (diff)
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.*"
Diffstat (limited to 'modules/terminal/system/programs/helix.nix')
-rw-r--r--modules/terminal/system/programs/helix.nix2
1 files changed, 1 insertions, 1 deletions
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 "$@"
'';
})