@aymanbagabas/drift 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -110,6 +110,13 @@ Make it your default git diff pager:
|
|
|
110
110
|
git config --global pager.diff drift
|
|
111
111
|
```
|
|
112
112
|
|
|
113
|
+
drift defaults to the `ansi` theme — your terminal's own colors, with syntax
|
|
114
|
+
highlighting off. Pick a theme to turn it on, globally via git config:
|
|
115
|
+
|
|
116
|
+
```sh
|
|
117
|
+
git config --global drift.theme onedark # onelight, dracula, nord, gruvbox-dark, ...
|
|
118
|
+
```
|
|
119
|
+
|
|
113
120
|
Some flags worth knowing:
|
|
114
121
|
|
|
115
122
|
| Flag | What it does |
|
|
@@ -171,9 +178,11 @@ drift is fully mouse-driven too:
|
|
|
171
178
|
|
|
172
179
|
## Themes
|
|
173
180
|
|
|
174
|
-
Set `theme = "..."` in your config.
|
|
181
|
+
Set `theme = "..."` in your config, or `git config drift.theme ...`. The default
|
|
182
|
+
is **`ansi`** — your terminal's own 16 colors, with syntax highlighting and
|
|
183
|
+
word-diff emphasis left off. Any other built-in theme turns highlighting on:
|
|
175
184
|
|
|
176
|
-
- `onedark`, `onelight`
|
|
185
|
+
- `onedark`, `onelight`
|
|
177
186
|
- `dracula`
|
|
178
187
|
- `gruvbox-dark`, `gruvbox-light`
|
|
179
188
|
- `nord`
|
|
@@ -181,13 +190,18 @@ Set `theme = "..."` in your config. Built in and ready:
|
|
|
181
190
|
- `catppuccin-mocha`, `catppuccin-latte`
|
|
182
191
|
- `tokyonight`
|
|
183
192
|
- `monokai`
|
|
184
|
-
- `ansi
|
|
185
|
-
whatever palette you already run. It leaves code text and word-diff
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
193
|
+
- `ansi` — the default: borrows your terminal's own 16 colors so drift matches
|
|
194
|
+
whatever palette you already run. It leaves code text and word-diff emphasis
|
|
195
|
+
alone, since 16 colors are too few to layer cleanly over diff colors.
|
|
196
|
+
|
|
197
|
+
A handful of [syntect](https://github.com/trishume/syntect) theme names also
|
|
198
|
+
work, but only the seven that ship in syntect's default set — `InspiredGitHub`,
|
|
199
|
+
`Solarized (dark)`, `Solarized (light)`, `base16-eighties.dark`,
|
|
200
|
+
`base16-mocha.dark`, `base16-ocean.dark`, and `base16-ocean.light`. They color
|
|
201
|
+
the code but won't repaint the UI chrome to match, and (Solarized aside) the
|
|
202
|
+
built-ins above already cover them with matching chrome. Any other theme name —
|
|
203
|
+
a custom `.tmTheme`, or a syntect theme not in that set — silently falls back to
|
|
204
|
+
`onedark`.
|
|
191
205
|
|
|
192
206
|
The `themes/` directory has a full, commented config for every built-in theme.
|
|
193
207
|
Copy one and go:
|