delta

A syntax-highlighting pager for git, diff, grep, and blame output

MIT License

Downloads
7.9K
Stars
22.7K
Committers
111

Bot releases are hidden (Show)

delta - 0.15.1

Published by dandavison almost 2 years ago

What's Changed

Full Changelog: https://github.com/dandavison/delta/compare/0.15.0...0.15.1

delta - 0.15.0

Published by dandavison almost 2 years ago

What's Changed

Thanks to all contributors for the changes in this release! One particularly exciting contribution is the tweaks to the highlighting algorithm made by @phillipwood in #1244. This is something that has remained more or less the same since delta was first created, but #1244 brings several improvements in the details of exactly which characters are highlighted.

New Contributors

Full Changelog: https://github.com/dandavison/delta/compare/0.14.0...0.15.0

delta - 0.12.1

Published by dandavison over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/dandavison/delta/compare/0.12.0...0.12.1

delta - 0.9.2

Published by dandavison almost 3 years ago

This release fixes a regression introduced in 0.9.0 affecting the use of git add -p when submodules are present. See https://github.com/dandavison/delta/issues/755

What's Changed

Full Changelog: https://github.com/dandavison/delta/compare/0.9.1...0.9.2

delta - 0.8.3

Published by dandavison over 3 years ago

This release fixes a security vulnerability (CVE-2021-36376) on Windows. Please update if you are using Windows.

delta - 0.8.2

Published by dandavison over 3 years ago

This is a bug fix release: the bug occurs when using delta to diff files whose names contain spaces. It does not affect use of delta as git's pager.

  • [closed] πŸ› argument parsing error with delta fileA fileB when filenames contain spaces #644
delta - 0.8.1

Published by dandavison over 3 years ago

This is mainly a bug fix release: filenames containing spaces were causing crashes due to a regression in 0.8.0. It also includes a fix for the delta file_a file_b "diff mode" usage style, and an improvement for the diff-highlight / diff-so-fancy emulation modes.

  • [closed] πŸ› Panic with filename "01g - Text" #639
  • [closed] πŸ› side-by-side option only works in diff mode when piping #631
  • [closed] commit-style raw for diff-so-fancy / diff-highlight #623
delta - 0.8.0

Published by dandavison over 3 years ago

  • πŸš€ New option relative-paths causes all file paths to be printed relative to the current directory so that they can be easily opened in a text editor or used in a shell command. Using hunk-header-style = file line-number syntax will emit the line number with the file path and thus should allow your editor to open at the correct line. For example, in the VS Code integrated terminal this means that with no further configuration every file path in git output can be opened with ctrl-click/cmd-click, and opening at a specific line works. Use diff-stat-align-width to control horizontal alignment of diff stat sections, although this may be replaced by a better solution in the future. https://github.com/dandavison/delta/issues/552
  • πŸš€ New option commit-regex allows delta to work nicely with custom git log formats (https://github.com/dandavison/delta/issues/174)
  • πŸš€ Support git -c delta.foo=bar ... in latest git version https://github.com/dandavison/delta/pull/573
  • πŸš€ Support custom hyperlink hash formats #613
  • πŸš€ Allow custom themes to be defined as light themes #598
  • πŸš€ Transform file paths to be relative to current directory #552
  • πŸš€ delta file_A file_B now invokes git diff, instead of diff -u
  • [Fixed] πŸ› the --24-bit-color option is unusable from .gitconfig: 24-bit-color is deprecated; use true-color instead. #567
  • [Fixed] πŸ› Fix less version parsing (https://github.com/dandavison/delta/pull/606, thanks @tpoliaw)
  • [Fixed] πŸ› No output for chmod file mode change #583
delta - 0.7.1

Published by dandavison over 3 years ago

This release brings two improvements due to delta contributors:

  • @cben proposed a new way for delta to seed less with the regexp that is used to implement navigation, which is implemented in this release. This makes it possible to keep navigate=true in delta config all the time, without the ill effects that it had before (#237)

  • @clnoll contributed a new option delta --show-themes, which demos the delta color themes that are available locally. n and N step forwards and backwards through the themes. (https://github.com/dandavison/delta/pull/550)

  • @clnoll has also contributed new themes to the growing collection (please consider submitting your own color config as a theme!)

  • [closed] πŸ› Setting $PAGER to use delta results in an infinite loop #529

  • [closed] πŸ› --navigate breaks git log --oneline and empty git diff #237

delta - 0.6.1

Published by dandavison over 3 years ago

To be superseded by 0.7.1

delta - 0.6.0

Published by dandavison over 3 years ago

This release brings a new and more convenient way to change delta options in a one-off git command: using git -c. Here's an example:

git -c delta.line-numbers=false -c delta.max-line-distance=0.8 show

Thanks to @wyuenho for pointing out that this should be supported. See https://github.com/dandavison/delta/issues/493 and https://github.com/dandavison/delta/pull/495.

One note: while quotes around color hex codes are required in gitconfig, they can be omitted in the git -c context

git -c delta.plus-style='syntax "#aa0000"' show
git -c delta.plus-style='syntax #aa0000' show
  • [closed] πŸ› Hunk header misaligned in some cases #510
  • [closed] πŸ› Delta does not respect git -c #493
  • [closed] πŸš€ Support for Apple Silicon/ARM64 #484
  • [closed] πŸ› Can't disable line numbering from command line #307
delta - 0.5.1

Published by dandavison almost 4 years ago

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 (https://github.com/dandavison/delta/pull/473#issuecomment-752900940).

delta - 0.5.0

Published by dandavison almost 4 years ago

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:

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
delta - 0.4.5

Published by dandavison almost 4 years ago

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
delta - 0.4.4

Published by dandavison about 4 years ago

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
delta - 0.4.3

Published by dandavison about 4 years ago

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
delta - 0.4.1

Published by dandavison about 4 years ago

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
delta - 0.4.0

Published by dandavison about 4 years ago

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
delta - 0.3.0

Published by dandavison over 4 years ago

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.

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
delta - 0.2.0

Published by dandavison over 4 years ago

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
Package Rankings
Top 1.48% on Alpine-v3.18
Top 8.07% on Alpine-v3.16
Top 8.22% on Alpine-v3.17
Top 5.44% on Alpine-edge
Top 14.66% on Crates.io
Top 8.17% on Formulae.brew.sh
Top 34.13% on Pypi.org