47
submitted 1 year ago* (last edited 1 year ago) by projectdp@lemmy.ml to c/rust@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] RunAwayFrog@sh.itjust.works 2 points 1 year ago* (last edited 1 year ago)

From your list, I use bat, exa and rg.

delta (sometimes packaged as git-delta) deserves a mention. I use it with this git configuration:

[core]
  # --inspect-raw-lines=false fixes issue where some added lines appear in bold blue without green background
  # default minus-style is 'normal auto'
  pager = "delta --inspect-raw-lines=false --minus-style='syntax #400000' --plus-style='syntax #004000' --minus-emph-style='normal #a00000' --plus-emph-style='normal #00a000' --line-buffer-size=48 --max-line-distance=0.8"

[interactive]
  diffFilter = "delta --inspect-raw-lines=false --color-only --minus-style='syntax #400000' --plus-style='syntax #004000' --minus-emph-style='normal #a00000' --plus-emph-style='normal #00a000' --line-buffer-size=48 --max-line-distance=0.8"

[delta]
  navigate = true  # use n and N to move between diff sections
  light = false    # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal)

[merge]
  conflictstyle = diff3
[-] projectdp@lemmy.ml 1 points 1 year ago

You know what, when I started the list I had delta but when I searched for it I got a different tool that didn't look right so I removed it, added this one back. Thanks for the added config!

this post was submitted on 21 Aug 2023
47 points (100.0% liked)

Rust Programming

8163 readers
16 users here now

founded 5 years ago
MODERATORS