跳转到主内容

Fossil

非官方测试版翻译

本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →

功能

当处于 fossil 仓库时显示 Fossil 信息。

示例配置

{
"type": "fossil",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#193549",
"background": "#ffeb3b"
}

选项

NameTypeDefaultDescription
native_fallbackbooleanfalsewhen set to true and fossil.exe is not available when inside a WSL2 shared Windows drive, we will fallback to the native fossil executable to fetch data. Not all information can be displayed in this case

模板 (信息)

默认模板
 \ue725 {{.Branch}} {{.Status.String}}

属性

NameTypeDescription
.StatusFossilStatuschanges in the worktree (see below)
.Branchstringcurrent branch

FossilStatus

NameTypeDescription
.Modifiedintnumber of edited, updated and changed files
.Deletedintnumber of deleted files
.Addedintnumber of added files
.Movedintnumber of renamed files
.Conflictedintnumber of conflicting files
.Changedbooleanif the status contains changes or not
.HasConflictsbooleanif the status contains conflicts or not
.Stringstringa string representation of the changes above

本地变更使用以下语法表示:

IconDescription
+added
!conflicted
-deleted
~modified
>moved