From 0671e2c42c0ca047385a747f38a88d940bad314a Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Tue, 20 Feb 2024 20:19:49 +0100 Subject: [PATCH] fix(git): migrate deprecated icon --- src/engine/migrate.go | 2 +- website/docs/segments/git.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/migrate.go b/src/engine/migrate.go index 2738df48..d1c9b805 100644 --- a/src/engine/migrate.go +++ b/src/engine/migrate.go @@ -62,7 +62,7 @@ func (segment *Segment) migrationOne(env platform.Environment) { segment.migrateTemplate() segment.migrateIconOverride("local_working_icon", " \uF044 ") segment.migrateIconOverride("local_staged_icon", " \uF046 ") - segment.migrateIconOverride("stash_count_icon", " \uF692 ") + segment.migrateIconOverride("stash_count_icon", " \uf0c7 ") segment.migrateIconOverride("worktree_count_icon", " \uf1bb ") segment.migrateIconOverride("status_separator_icon", " |") if segment.Properties.GetBool("status_colors_enabled", false) { diff --git a/website/docs/segments/git.mdx b/website/docs/segments/git.mdx index eb197aa7..753baf82 100644 --- a/website/docs/segments/git.mdx +++ b/website/docs/segments/git.mdx @@ -51,7 +51,7 @@ import Config from "@site/src/components/Config.js"; "{{ if gt .Behind 0 }}#B388FB{{ end }}", ], template: - "{{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uF692 {{ .StashCount }}{{ end }}", + "{{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf0c7 {{ .StashCount }}{{ end }}", properties: { fetch_status: true, fetch_upstream_icon: true,