Skip to content

Commit

Permalink
docs: Add information about configuring delta pager
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanLorimer committed Apr 29, 2024
1 parent 492dd99 commit 46761b4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,19 @@ command will be executed directly. For example:
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 select this option on each invocation
of `jj diff` by using the `--git` flag. You can also configure this style of
diff as the default with the `ui.diff` setting. For example:

```toml
[ui]
pager = "delta"

[ui.diff]
format = "git"
```

## Aliases

You can define aliases for commands, including their arguments. For example:
Expand Down

0 comments on commit 46761b4

Please sign in to comment.