diff --git a/config/git-split-diffs/README.md b/config/git-split-diffs/README.md new file mode 100644 index 0000000..be3cbda --- /dev/null +++ b/config/git-split-diffs/README.md @@ -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 +``` + diff --git a/config/git-split-diffs/transparent.json b/config/git-split-diffs/transparent.json new file mode 100644 index 0000000..47b684b --- /dev/null +++ b/config/git-split-diffs/transparent.json @@ -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" + } +}