From 484f2fdc15a33163d642329e8fd551c5aabc5039 Mon Sep 17 00:00:00 2001 From: Arthur Grillo Date: Sun, 13 Oct 2024 16:10:00 -0300 Subject: [PATCH] docs/config: Document where to set default templates 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. --- docs/config.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/docs/config.md b/docs/config.md index ee73f9482f..1c8522f4d3 100644 --- a/docs/config.md +++ b/docs/config.md @@ -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