From 3a54b1f4a4c80aa7d5d663ff49e299029e1dfccf Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 12 Mar 2026 10:07:58 +0200 Subject: Update --- fish/conf.d/editor.fish | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fish/conf.d/editor.fish b/fish/conf.d/editor.fish index bda4644..af32b25 100644 --- a/fish/conf.d/editor.fish +++ b/fish/conf.d/editor.fish @@ -36,6 +36,13 @@ function editor::helix::edit::remote hx $local_path end +function hxdiff + set tmp (mktemp /tmp/hxdiff_XXXXXX.diff) + diff -u -r $argv >$tmp + hx $tmp + rm -f $tmp +end + abbr -a lhx 'editor::helix::open_with_lock' abbr -a hxl 'editor::helix::open_with_lock' abbr -a hxlf 'editor::helix::open_with_lock::force' -- cgit v1.2.3 From 5b491c31ab1836d1e59cced1e21b7ca69a8ff70d Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 12 Mar 2026 11:31:19 +0200 Subject: Update --- fish/conf.d/editor.fish | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fish/conf.d/editor.fish b/fish/conf.d/editor.fish index af32b25..6b58b6a 100644 --- a/fish/conf.d/editor.fish +++ b/fish/conf.d/editor.fish @@ -41,6 +41,11 @@ function hxdiff diff -u -r $argv >$tmp hx $tmp rm -f $tmp + +end + +function tfdiff + hxdiff --exclude='state.tf' --exclude='*.tfstate*' end abbr -a lhx 'editor::helix::open_with_lock' -- cgit v1.2.3 From b885ce5076c242a88f59067ebb48e7ccd78015e0 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 12 Mar 2026 11:57:59 +0200 Subject: Update --- fish/conf.d/editor.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish/conf.d/editor.fish b/fish/conf.d/editor.fish index 6b58b6a..ed06161 100644 --- a/fish/conf.d/editor.fish +++ b/fish/conf.d/editor.fish @@ -45,7 +45,7 @@ function hxdiff end function tfdiff - hxdiff --exclude='state.tf' --exclude='*.tfstate*' + hxdiff --exclude=.claude --exclude=.cursor --exclude=modules.json --exclude=.terraform --exclude=.terraform.lock.hcl $argv end abbr -a lhx 'editor::helix::open_with_lock' -- cgit v1.2.3 From 12af0aca200339b053de95092de25a8f383c97f9 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 12 Mar 2026 12:07:35 +0200 Subject: Update --- fish/conf.d/editor.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish/conf.d/editor.fish b/fish/conf.d/editor.fish index ed06161..309cb1e 100644 --- a/fish/conf.d/editor.fish +++ b/fish/conf.d/editor.fish @@ -45,7 +45,7 @@ function hxdiff end function tfdiff - hxdiff --exclude=.claude --exclude=.cursor --exclude=modules.json --exclude=.terraform --exclude=.terraform.lock.hcl $argv + hxdiff --exclude=.claude --exclude=.cursor --exclude='*.tfplan' --exclude=modules.json --exclude=.terraform --exclude=.terraform.lock.hcl $argv end abbr -a lhx 'editor::helix::open_with_lock' -- cgit v1.2.3