ok/jj
1
0
Fork 0
forked from mirrors/jj

docs: Add information about configuring delta pager

docs: Add information about configuring delta pager

docs: only mention pager, not diff
This commit is contained in:
Jonathan Lorimer 2024-04-28 20:43:57 -04:00 committed by Martin von Zweigbergk
parent af95c788af
commit e54e83b0f5

View file

@ -386,6 +386,18 @@ command will be executed directly. For example:
ui.pager = ["sh", "-c", "diff-so-fancy | less -RFX"] ui.pager = ["sh", "-c", "diff-so-fancy | less -RFX"]
``` ```
Some formatters (like [`delta`](https://github.com/dandavison/delta)) require
git style diffs for formatting. You can configure this style of
diff as the default with the `ui.diff` setting. For example:
```toml
[ui]
pager = "delta"
[ui.diff]
format = "git"
```
## Aliases ## Aliases
You can define aliases for commands, including their arguments. For example: You can define aliases for commands, including their arguments. For example: