dandavison / delta

A syntax-highlighting pager for git, diff, grep, and blame output
https://dandavison.github.io/delta/
MIT License
21.43k stars 361 forks source link

🚀 Add a way to skip printing symbols altogether #1533

Open Destroy666x opened 10 months ago

Destroy666x commented 10 months ago

Would be nice if git config --global delta.icons.wrap-right-prefix-symbol "" and similar settings stopped a symbol from showing. Instead, an error is thrown:

Invalid value for wrap-right-prefix-symbol, display width of "" must be 1 but is 0

Alll of the wrapping icons bring no value to me and only take space as I have line numbers enabled and can clearly see that the line continues from that.

The closest workaround I found was setting it to space, but that takes space, still. I also tried zero-width space, but that caused this: image And e.g. ␀ (null) character but that gets printed.

I don't see any reason for that error to be thrown. Maybe some internal implementation seeing how zero width breaks it.