Debian Codegraph @

manual/src/features.md

raw symbols SCIP
1 # Features
2
3 - Language syntax highlighting with color themes
4 - Within-line highlights based on a Levenshtein edit inference algorithm
5 - Side-by-side view with line-wrapping
6 - Line numbering
7 - `n` and `N` keybindings to move between files in large diffs, and between diffs in `log -p` views (`--navigate`)
8 - Improved merge conflict display
9 - Improved `git blame` display (syntax highlighting; `--hyperlinks` formats commits as links to GitHub/GitLab/Bitbucket etc)
10 - Syntax-highlights grep output from `rg`, `git grep`, `grep`, etc
11 - Support for Git's `--color-moved` feature.
12 - Code can be copied directly from the diff (`-/+` markers are removed by default).
13 - `diff-highlight` and `diff-so-fancy` emulation modes
14 - Commit hashes can be formatted as terminal [hyperlinks](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda) to the GitHub/GitLab/Bitbucket page (`--hyperlinks`).
15 File paths can also be formatted as hyperlinks for opening in your OS.
16 - Stylable box/line decorations to draw attention to commit, file and hunk header sections.
17 - Git style strings (foreground color, background color, font attributes) are supported for >20 stylable elements
18
19 | | delta | git | [diff-so-fancy] /<br>[diff-highlight] | github/gitlab |
20 | ---------------------------------------------- | ----- | --- | ------------------------------------- | ------------- |
21 | language syntax highlighting | ✅ | ❌ | ❌ | ✅ |
22 | within-line insertion/deletion detection | ✅ | ❌ | ✅ | ✅ |
23 | multiple insertion/deletions detected per line | ✅ | ❌ | ❌ | ✅ |
24 | matching of unequal numbers of changed lines | ✅ | ❌ | ❌ | ❌ |
25 | independently stylable elements | ✅ | ✅ | ✅ | ❌ |
26 | line numbering | ✅ | ❌ | ❌ | ✅ |
27 | side-by-side view | ✅ | ❌ | ❌ | ✅ |
28
29 In addition, delta handles traditional unified diff output.
30
31 [diff-so-fancy]: https://github.com/so-fancy/diff-so-fancy
32 [diff-highlight]: https://github.com/git/git/tree/master/contrib/diff-highlight