diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-12 10:07:58 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-12 10:07:58 +0200 |
| commit | 3a54b1f4a4c80aa7d5d663ff49e299029e1dfccf (patch) | |
| tree | 386acc7e6a9721ee9c86327517870c85b543946d /fish/conf.d | |
| parent | 56953c01c31c7025e552c164f174b2a005a14bd6 (diff) | |
Update
Diffstat (limited to 'fish/conf.d')
| -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' |
