git split diffs tool

This commit is contained in:
2026-02-04 17:39:59 -08:00
parent b64a2c9030
commit 4d34926921
2 changed files with 80 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
## Info
Using: https://github.com/banga/git-split-diffs/
```bash
# Install
npm install -g git-split-diffs
# Install (with mouse scrolling)
git config --global core.pager "git-split-diffs --color | less -+LFX"
```
## Custom Theme ([info](https://github.com/banga/git-split-diffs/tree/v2.2.0?tab=readme-ov-file#custom-themes))
Copy JSON themes to `~/.git-split-diffs-themes`, then:
```bash
git config --global split-diffs.theme-directory ~/.git-split-diffs-themes
git config --global split-diffs.theme-name transparent
```

View File

@@ -0,0 +1,59 @@
{
"SYNTAX_HIGHLIGHTING_THEME": "dark",
"DEFAULT_COLOR": {
"color": "#768390",
"backgroundColor": "#00000000"
},
"COMMIT_HEADER_COLOR": {
"color": "#adbac7",
"backgroundColor": "#00000000"
},
"COMMIT_HEADER_LABEL_COLOR": {},
"COMMIT_SHA_COLOR": {},
"COMMIT_DATE_COLOR": {},
"COMMIT_AUTHOR_COLOR": {},
"COMMIT_MESSAGE_COLOR": {
"color": "#909dab",
"backgroundColor": "#00000000"
},
"COMMIT_TITLE_COLOR": {
"color": "#c6e6ff",
"modifiers": ["bold"]
},
"BORDER_COLOR": {
"color": "#444c56",
"backgroundColor": "#00000000"
},
"FILE_NAME_COLOR": {
"color": "#adbac7",
"backgroundColor": "#00000000"
},
"HUNK_HEADER_COLOR": {
"backgroundColor": "#00000000"
},
"DELETED_WORD_COLOR": {
"backgroundColor": "#c93c3733"
},
"INSERTED_WORD_COLOR": {
"backgroundColor": "#46954a33"
},
"DELETED_LINE_NO_COLOR": {
"color": "#e5534b",
"backgroundColor": "#c93c371a"
},
"INSERTED_LINE_NO_COLOR": {
"color": "#57ab5a",
"backgroundColor": "#46954a1a"
},
"UNMODIFIED_LINE_NO_COLOR": {},
"DELETED_LINE_COLOR": {
"backgroundColor": "#442d3080"
},
"INSERTED_LINE_COLOR": {
"backgroundColor": "#2a3c3380"
},
"UNMODIFIED_LINE_COLOR": {},
"MISSING_LINE_COLOR": {
"backgroundColor": "#2d333b80"
}
}