Skip to content

Commit

Permalink
docs/config: Document where to set default templates
Browse files Browse the repository at this point in the history
The user may want to know how to change the default template used. To
help this, add documentation about how to change this on the configs.
  • Loading branch information
Grillo-0 committed Oct 26, 2024
1 parent bfaa5b8 commit 484f2fd
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,32 @@ revsets.log = "main@origin.."
The default value for `revsets.log` is
`'present(@) | ancestors(immutable_heads().., 2) | present(trunk())'`.

### Default Template

You can configure the template used when no `-T` is specified.

- `templates.log` for `jj log`
- `templates.op_log` for `jj op log`
- `templates.show` for `jj show`

```toml
[templates]
# Use builtin log template
log = "builtin_log_compact"
# Use builtin op log template
op_log = "builtin_log_compact"
# Use builtin show template
show = "builtin_log_detailed"
```

If you want to see the full description when you do `jj log` you can add this to
your config:

```toml
[templates]
log = "builtin_log_compact_full_description"
```

### Graph style

```toml
Expand Down

0 comments on commit 484f2fd

Please sign in to comment.