diff --git a/src/config/segment.go b/src/config/segment.go index 2fd7da60..30781398 100644 --- a/src/config/segment.go +++ b/src/config/segment.go @@ -58,7 +58,6 @@ type Segment struct { LeadingPowerlineSymbol string `json:"leading_powerline_symbol,omitempty" toml:"leading_powerline_symbol,omitempty"` ForegroundTemplates template.List `json:"foreground_templates,omitempty" toml:"foreground_templates,omitempty"` Tips []string `json:"tips,omitempty" toml:"tips,omitempty"` - Templates template.List `json:"templates,omitempty" toml:"templates,omitempty"` BackgroundTemplates template.List `json:"background_templates,omitempty" toml:"background_templates,omitempty"` MinWidth int `json:"min_width,omitempty" toml:"min_width,omitempty"` MaxWidth int `json:"max_width,omitempty" toml:"max_width,omitempty"` @@ -247,13 +246,6 @@ func (segment *Segment) SetText() { } func (segment *Segment) string() string { - if !segment.Templates.Empty() { - templatesResult := segment.Templates.Resolve(segment.writer, "", segment.TemplatesLogic) - if len(segment.Template) == 0 { - return templatesResult - } - } - if len(segment.Template) == 0 { segment.Template = segment.writer.Template() } diff --git a/themes/schema.json b/themes/schema.json index e6d82f87..51a019e9 100644 --- a/themes/schema.json +++ b/themes/schema.json @@ -430,10 +430,6 @@ "description": "https://ohmyposh.dev/docs/configuration/templates", "default": "" }, - "templates": { - "$ref": "#/definitions/templates", - "description": "https://ohmyposh.dev/docs/configuration/segment" - }, "templates_logic": { "type": "string", "title": "Templates Logic",