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:
-
To configure delta's appearance, you now use "styles" instead of background color names. A style is a string like
red bold ul "#ffeeee"
that specifies foreground color, background color, and attributes. See https://github.com/dandavison/delta#choosing-colors-styles. -
Delta now reads configuration from a
[delta]
section in git config, and this is the recommended way to configure delta. See https://github.com/dandavison/delta#configuration -
Delta now has a line numbers feature, thanks to @clnoll. See #190, #219
-
Delta now has
--diff-highlight
and--diff-so-fancy
emulation modes (thanks @waldyrious for much testing)
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 whenBAT_PAGER
is explicitly set #88