summaryrefslogtreecommitdiff
path: root/fish/conf.d/editor.fish
diff options
context:
space:
mode:
Diffstat (limited to 'fish/conf.d/editor.fish')
-rw-r--r--fish/conf.d/editor.fish12
1 files changed, 12 insertions, 0 deletions
diff --git a/fish/conf.d/editor.fish b/fish/conf.d/editor.fish
index bda4644..309cb1e 100644
--- a/fish/conf.d/editor.fish
+++ b/fish/conf.d/editor.fish
@@ -36,6 +36,18 @@ 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
+
+function tfdiff
+ 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'
abbr -a hxl 'editor::helix::open_with_lock'
abbr -a hxlf 'editor::helix::open_with_lock::force'