diff options
| -rw-r--r-- | fish/conf.d/editor.fish | 7 |
1 files changed, 7 insertions, 0 deletions
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' |
