Skip to main content

Jujutsu

What

Display Jujutsu information when in a Jujutsu repository.

Sample Configuration

{
"type": "jujutsu",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#193549",
"background": "#ffeb3b",
"properties": {
"fetch_status": true,
"ignore_working_copy": false
}
}

Properties

Fetching information

As doing Jujutsu (jj) calls can slow down the prompt experience, we do not fetch information by default. Set status_formats to true to enable fetching additional information (and populate the template).

NameTypeDefaultDescription
fetch_statusbooleanfalsefetch the local changes
ignore_working_copybooleantruedon't snapshot the working copy, and don't update it
native_fallbackbooleanfalsewhen set to true and jj.exe is not available when inside a WSL2 shared Windows drive, we will fallback to the native jj executable to fetch data. Not all information can be displayed in this case
status_formatsmap[string]stringa key, value map allowing to override how individual status items are displayed. For example, "status_formats": { "Added": "Added: %d" } will display the added count as Added: 1 instead of +1. See the Status section for available overrides

Template (info)

default template
jj {{.ChangeID}}{{if .Working.Changed}} \uf044 {{ .Working.String }}{{ end }}

Properties

NameTypeDescription
.WorkingStatuschanges in the working copy (see below)
.ChangeIDstringThe shortest unique prefix of the working copy change

Status

NameTypeDescription
.Modifiedintnumber of modified files
.Deletedintnumber of deleted files
.Addedintnumber of added files
.Movedintnumber of renamed files
.Changedbooleanif the status contains changes or not
.Stringstringa string representation of the changes above

Local changes use the following syntax:

IconDescription
~Modified
-Deleted
+Added
>Moved