gitui-org / gitui-org/gitui

[Feature request] Add syntax highlight for diff view

Open
#2,326 1 comment 5 reactions 0 assignees View on GitHub
feature-request
Dominant language
Rust
Stars
22.5k
Forks
773
PR merge metrics
No merged PRs in 30d

Description

related to #358 , but https://github.com/dandavison/delta has wrong highlight when diffing `.vue` files.

my draft implementation:

![image](https://github.com/user-attachments/assets/b9db8a52-39bf-4d59-b860-58df7bea9876)

delta:

![image](https://github.com/user-attachments/assets/bed18412-cb3a-446d-b723-386623aacf56)

my impletation diffs the whole file twice, so the performance may be affected

@extrawurst i'll create a pr for it if this solution is acceptable

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.