Direct naar hoofdinhoud

Jujutsu

Onofficiรซle Beta-vertaling

Deze pagina is vertaald door PageTurner AI (beta). Niet officieel goedgekeurd door het project. Een fout gevonden? Probleem melden โ†’

Watโ€‹

Toont Jujutsu-informatie wanneer je in een Jujutsu-repository werkt.

Voorbeeldconfiguratieโ€‹

{
"type": "jujutsu",
"style": "powerline",
"powerline_symbol": "๎‚ฐ",
"foreground": "#193549",
"background": "#ffeb3b",
"options": {
"fetch_status": true,
"ignore_working_copy": false,
"fetch_ahead_counter": true,
"ahead_icon": "โ‡ก"
}
}

Optiesโ€‹

Informatie ophalenโ€‹

Omdat Jujutsu (jj)-aanroepen de promptervaring kunnen vertragen, halen we standaard geen informatie op. Stel status_formats in op true om het ophalen van aanvullende informatie in te schakelen (en de template te vullen).

NameTypeDefaultDescription
change_id_min_lenint0ChangeID will be at least this many characters, even if a shorter one would be unique
fetch_statusbooleanfalsefetch the local changes
ignore_working_copybooleantruedon't snapshot/update the working copy
fetch_ahead_counterbooleanfalsefetch a counter for number of changes between working copy and closest bookmark
ahead_iconstring\u21e1icon/character between bookmark and ahead counter
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 (informatie)โ€‹

standaard template
 \uf1fa{{.ChangeID}}{{if .Working.Changed}} \uf044 {{ .Working.String }}{{ end }}

Eigenschappenโ€‹

NameTypeDescription
.WorkingStatuschanges in the working copy (see below)
.ChangeIDstringThe shortest unique prefix of the working copy change that's at least change_id_min_len long
.ClosestBookmarksstringClosest bookmark(s) on ancestors

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

Lokale wijzigingen gebruiken de volgende syntax:

IconDescription
~Modified
-Deleted
+Added
>Moved