Skip to content

Releases: dandavison/delta

0.5.1

05 Jan 15:16
Compare
Choose a tag to compare

This release is primarily to make delta build on Apple Silicon/ARM for Homebrew (#487). It also fixes an inconsistency whereby the line number was not displayed in the hunk header if line-numbers was active (#473 (comment)).

0.5.0

31 Dec 00:29
abc5141
Compare
Choose a tag to compare

This release introduces a cosmetic change to delta output: the line number (when full line-numbers mode is not active) is now displayed in the hunk header line, along with the hunk header code fragment, and optionally a file path. Thanks to @infokiller and @torarnv for suggesting these changes. For example, it might now look like this, if you use hunk-header-style = file line-number syntax:

image

Use hunk-header-style to configure it:

--hunk-header-style <hunk-header-style>
    Style (foreground, background, attributes) for the hunk-header. See STYLES section. Special attributes
    'file' and 'line-number' can be used to include the file path, and number of first hunk line, in the hunk
    header. If included in the hunk header, 'file' and 'line-number' are styled according to 'file-style' and
    'hunk-header-decoration-style' respectively. The style 'omit' can be used to remove the hunk header section
    from the output [default: line-number syntax]

If you are displaying the file path in the hunk header, you may want to get rid of the main file line. Use file-style = <my-file-color> omit to set the color of the file in the hunk header while deactivating the main file section.

The release also fixes a bug that was introduced in the last release when using delta as a unified diff replacement, i.e. delta file_a file_b. (#463).

  • [closed] 🐛 delta 0.4.5 binary release messes up terminal on Ubuntu 20 04 #463
  • [closed] 🐛 delta 0.4.5 binary release does not run on macOS 10.11 (El Capitan) #462
  • [closed] ReadMe can now use latest less.exe (instead of forked version) #461
  • [closed] 🐛 bump-homebrew-formula GitHub CD action is not working #460
  • [closed] 🚀 Is it possible to show the file path in the hunk header? #309
  • [closed] 🐛 side-by-side alignment incorrect when tabs present #308

0.4.5

23 Dec 09:58
66f73d7
Compare
Choose a tag to compare

Many thanks to @MarcoIeni for creating CI and CD workflows for Delta in GitHub actions, and to @ulwlu for continued work on color-only / git add -p support.

  • [closed] delta shall have non-zero status code if there were any matches found #448
  • [closed] 🚀 Expose max_buffered_lines as configurable option #427
  • [closed] 🐛 Some theme options are not working with --color-only enabled #405
  • [closed] 🚀 Calculate code coverage #401
  • [closed] 🚀 Switch from Travis to GitHub actions #396
  • [closed] 🚀 delta does not recognize Git's copy detection #392
  • [closed] 🐛 Empty lines highlight plus-marker as whitespace-error #388
  • [closed] 🐛 PAGER= does nothing #386
  • [closed] 🚀 Add a test that enforces clippy and rustfmt compliance #384
  • [closed] 🐛 Dimmed-zebra doesn't show whether line is removed vs. added #371
  • [closed] 🐛 Windows Terminal Preview 1.4: Hyperlinks not working #332
  • [closed] Is it possible to not use hunk header and see absolute (true) not relative line numbers? #319
  • [closed] Is it possible to show the file path in the hunk header? #309
  • [closed] 🐛 Markdown coloring problem #281

0.4.4

10 Oct 23:24
Compare
Choose a tag to compare

This release mostly fixes bugs in git add -p behavior, adds test coverage, and clarifies the code involved. Thanks very much @Ryuta69 who did all this work.

In addition, a new environment variable is supported: DELTA_PAGER. If set, this takes precedence over BAT_PAGER. See --paging in delta --help.

  • [closed] 🐛 git add -p one-to-one correspondence errors #320
  • [closed] 🐛 Line numbers incorrect/relative - Windows/Delta 0.4.1 #293
  • [closed] 🐛 [Linux] git add -p not working with side-by-side #274
  • [closed] 🐛 Delta crash on Windows when using as stand-alone diff tool #339
  • [closed] Second document label is missing last character (truncated) #324

0.4.3

04 Sep 14:42
Compare
Choose a tag to compare

A few bug fixes and a couple of minor features (mac-line-length (#154) and the ability to hide all line numbers (#292)).

  • [closed] 🚀 How to remove line number #292
  • [closed] 🚀 ignore big file diff #288
  • [closed] 🐛 Tabs displayed incorrectly under git diff color-moved #280
  • [closed] 🚀 Release aarch64 build #278
  • [closed] 🐛 Width calculations are incorrect with hyperlinks and side-by-side #262
  • [closed] 🐛 High memory usage when fed diff of minimized files #154

0.4.1

08 Aug 16:35
Compare
Choose a tag to compare

This release fixes a few bugs. In particular, it makes it possible to use git add -p with line numbers activated. If you also have side-by-side activated then that will not be used in git add -p (it's impossible) but it will now not cause an error either. Thanks very much to @yoichi for analyzing and fixing the problems with git add -p.

  • [closed] 🐛 Dockerfile isn't colored #275
  • [closed] 🐛 [Linux] git add -p not working with side-by-side #274
  • [closed] 🐛 Mismatch in line numbers between git diff and git add -p #258

0.4.0

04 Aug 01:16
Compare
Choose a tag to compare

The main new feature in this release is support for git diff --color-moved: see #72. This makes Git's native moved-line detection algorithms and styling options available when using Delta. Delta supports this automatically, without any configuration change, but see the new option inspect-raw-lines in case you need to turn it off.

The other new feature is that Delta can now cause files and commit hashes to be rendered as hyperlinks in your terminal emulator: However, this will not be available to you without, at the minimum, installing a patched version of less, because support for the hyperlink spec has only partially spread through the terminal application ecosystem. See #257 and the delta --help text for details.

Finally, thanks to @Ryuta69 for the fix for #264.

  • [closed] 🚀 Support --color-moved #72
  • [closed] 🚀Support --color-moved-ws #144
  • [closed] 🚀 Support displaying files and commits as OSC 8 hyperlinks #257
  • [closed] 🐛 width option is not honored in git config sections #264
  • [closed] 🐛 diff -U0 rendered with lines out of order #263
  • [closed] 🐛 paging should be supported in gitconfig #253
  • [closed] 🐛 syntax-theme should be honored in a custom feature in gitconfig #252
  • [closed] 🐛 Line numbers style not taking effect with --side-by-side #251
  • [closed] 🐛 Duplicate "renamed" header when file is renamed with changes #245

0.3.0

11 Jul 16:34
Compare
Choose a tag to compare

This release adds a side-by-side diff view: delta -s or delta --side-by-side. By default, side-by-side view has line-numbers activated, and has syntax highlighting in both the left and right panels.

image

The release also fixes bug #238 in which the line number display alignment was broken for line numbers greater than 9999.

  • [closed] 🚀 directory diff #232
  • [closed] 🚀 Side by side viewer #86
  • [closed] 🐛 line-number breaks with 5 digits #238

0.2.0

01 Jul 18:01
Compare
Choose a tag to compare

This is a large release, introducing major changes to delta configuration as well as new features and bug fixes. It involved a major overhaul of the code base. Many thanks to everyone who submitted issues, PRs, and helped with testing and feedback, in particular @0xC0FFEE, @boris-petrov, @clnoll, @da-x, @gibfahn, @mk12, @phillipwood, @waldyrious.

The highlights are:


 60 files changed, 9247 insertions(+), 2360 deletions(-)
  • [closed] 🚀 improve diff -u comparison #229
  • [closed] 🚀 Provide a compact --list-themes output #207
  • [closed] 🚀 Moving around in the diff #199
  • [closed] 🚀 Minimal color mode reusing the default colors #193
  • [closed] 🚀 Include comparison with git/contrib/diff-highlight #192
  • [closed] 🚀 Add your own custom themes #180
  • [closed] 🚀 empty line handling and getting rid of the space leftover from -/+ #179
  • [closed] 🚀 Add foreground-color options #177
  • [closed] 🚀 Tweak --list-themes output #170
  • [closed] 🚀 Add option to adjust/remove background color of lines with emphasized sections #169
  • [closed] 🚀Allow configuration of underline width #155
  • [closed] 🚀 Add option to override terminal's background color #153
  • [closed] 🚀 Add file modify state to output for less pre-seeding #135
  • [closed] 🚀 Add a line number sidebar? #130
  • [closed] 🚀 Hunk style line number references #97
  • [closed] 🚀 Background color issues #87
  • [closed] 🚀 Update binary assets from bat #85
  • [closed] 🚀 Setting line numbers in less messes up ruler #61
  • [closed] 🚀 Moving around diffs #50
  • [closed] 🐛 error: "stream did not contain valid UTF-8" #218
  • [closed] 🐛 Handle diff.mnemonicPrefix #215
  • [closed] 🐛 Trailing whitespace in otherwise empty line is not highlighted #212
  • [closed] 🐛 Crash searching a long diff #210
  • [closed] 🐛 Thread 'main' panicked at 'regex string should be pre-tested: Error(-208, invalid backref number/name)' #202
  • [closed] 🐛 Missing word highlighting #198
  • [closed] 🐛 Panic handing invalid UTF-8 #187
  • [closed] 🐛 Graphical paging issues unless piped to less #186
  • [closed] 🐛 less with --clear-screen doesn't work #185
  • [closed] 🐛 Within-line insertion/deletion detection is not working in all cases that work with diff-highlight #184
  • [closed] 🐛 Incorrectly highlighting removed characters #175
  • [closed] 🐛 .gitconfig entry breaks with space in theme name #166
  • [closed] 🐛 Custom git log coloring is overwritten #163
  • [closed] 🐛 Problem with base16 theme from bat v0.15 #161
  • [closed] 🐛 Failed to compile on arch caused by onig_sys error #157
  • [closed] 🐛 Crash on some PDFs #150
  • [closed] 🐛 Diff for filenames with space enclosed dashes panic #139
  • [closed] 🐛 When --color-only is used, colors don't extend to the whole line #136
  • [closed] 🐛 Diff highlighting overflows onto the next line (2 chars too long) #115
  • [closed] 🐛 Don't pass --no-init to less when BAT_PAGER is explicitly set #88

0.1.1

26 Apr 23:16
Compare
Choose a tag to compare