MyGit

0.10.0

dandavison/delta

版本发布时间: 2021-11-25 05:36:25

dandavison/delta最新发布版本:0.17.0(2024-03-16 22:28:32)

New features in this release:

Here's an example of using map-styles to assign delta styles (one with syntax highlighting) to the raw color-moved styles output by git. This should allow all git's color-moved options to be rendered using delta styles:

[delta]
    features = my-color-moved-theme

[delta "my-color-moved-theme"]
    git-moved-from-style = bold purple     # An ad-hoc named style (must end in "-style")
    
    map-styles = "my-color-moved-theme.git-moved-from-style => red #cccccc, \
                  bold cyan => syntax #cccccc"
                  
    # we could also have defined git-moved-to-style = bold cyan

To make use of that, you need to know that git is emitting "bold cyan" and "bold purple". But that's not always obvious. To help with that, delta now has a --parse-ansi mode. E.g. git show --color=always | delta --parse-ansi outputs something like this:

image

As you see above, we can now define named styles in gitconfig and refer to them in places where a style string is expected. We can also define custom named colors in git config, and styles can reference other styles; see the hoopoe theme for an example:

[delta "hoopoe"]
    green = "#d0ffd0"  # ad-hoc named color
    plus-style = syntax hoopoe.green  # refer to named color
    plus-non-emph-style = plus-style  # styles can reference other styles

Additionally, we can now use the 140 color names that are standard in CSS. Use delta --show-colors to get a demo of the available colors, as background colors to see how they look with syntax highlighting:

image

PRs

New Contributors

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

相关地址:原始地址 下载(tar) 下载(zip)

1、 delta-0.10.0-aarch64-unknown-linux-gnu.tar.gz 2.31MB

2、 delta-0.10.0-arm-unknown-linux-gnueabihf.tar.gz 2.34MB

3、 delta-0.10.0-i686-unknown-linux-gnu.tar.gz 2.62MB

4、 delta-0.10.0-x86_64-apple-darwin.tar.gz 2.34MB

5、 delta-0.10.0-x86_64-pc-windows-msvc.zip 2.59MB

6、 delta-0.10.0-x86_64-unknown-linux-gnu.tar.gz 2.46MB

7、 delta-0.10.0-x86_64-unknown-linux-musl.tar.gz 2.49MB

8、 git-delta-musl_0.10.0_amd64.deb 1.98MB

9、 git-delta_0.10.0_amd64.deb 1.93MB

10、 git-delta_0.10.0_arm64.deb 1.76MB

11、 git-delta_0.10.0_armhf.deb 1.77MB

12、 git-delta_0.10.0_i386.deb 2.07MB

查看:2021-11-25发行的版本