Releases: dandavison/delta
Releases · dandavison/delta
0.1.0
0.0.18
- New options
--keep-plus-minus-markers
and--color-only
#122 - [closed] Properly calculate string widths for CJK characters #121 Thanks @xen0n!
- [closed] Delta should be aware of diff.noprefix option (truncated filenames) #120
- [closed] Include new bat themes introduced in v0.13.0 #118
- [closed] Support
git stash show --stat --patch
#100
0.0.17
This release brings new command line options for controlling the colors used for structural element decorations (commits, files, hunk markers), and a consistent pattern for specifying colors for all options that accept a color as a value.
New options are
--commit-style <commit_style>
Formatting style for the commit section of git output. Options are: plain, box. [default: plain]
--file-style <file_style>
Formatting style for the file section of git output. Options are: plain, box, underline. [default:
underline]
--hunk-style <hunk_style>
Formatting style for the hunk-marker section of git output. Options are: plain, box. [default: box]
The --help
output now features the following.
Colors
------
All delta color options work the same way. There are three ways to specify a color:
1. RGB hex code
An example of using an RGB hex code is:
--file-color="#0e7c0e"
2. ANSI color name
There are 8 ANSI color names:
black, red, green, yellow, blue, magenta, cyan, white.
In addition, all of them have a bright form:
bright-black, bright-red, bright-green, bright-yellow, bright-blue, bright-magenta, bright-cyan, bright-white
An example of using an ANSI color name is:
--file-color="green"
Unlike RGB hex codes, ANSI color names are just names: you can choose the exact color that each
name corresponds to in the settings of your terminal application (the application you use to
enter commands at a shell prompt). This means that if you use ANSI color names, and you change
the color theme used by your terminal, then delta's colors will respond automatically, without
needing to change the delta command line.
"purple" is accepted as a synonym for "magenta". Color names and codes are case-insensitive.
3. ANSI color number
An example of using an ANSI color number is:
--file-color=28
There are 256 ANSI color numbers: 0-255. The first 16 are the same as the colors described in
the "ANSI color name" section above. See https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit.
Specifying colors like this is useful if your terminal only supports 256 colors (i.e. doesn't
support 24-bit color).
0.0.16
There is no Windows executable for release 0.0.16 due to the current Windows build failure.
- [closed] Support bat custom themes and syntax definitions #19
- [closed] Fix --plus-emph-color in commented text #71
- [closed] Fix base16, ansi-dark, and ansi-light themes #54
- [closed] Change Debian package name to avoid clash #26
- [closed] Fix build on macOS Catalina #24
- [closed] Fix Haskell/SQL comment parser ambiguity #89
0.0.15
- [enhancement][good first issue] Support diff -u ... | delta #53
- [closed] Added first and last line of hunk is not highlighted #52
- [bug] PAGER and BAT_PAGER should be ignored when set but empty #42
- [bug] Terminal size is off by one on Linux #41
- [closed] Reduce startup time #35
- [enhancement] Allow theme to be set via environment variables #2
0.0.14
Bump version
0.0.13
Bump version
0.0.12
Bump version
0.0.11
- New option
--theme=none
to disable syntax highlighting.