@@ -41,39 +41,39 @@ func (s *SegmentStyle) resolve(context any) SegmentStyle {
41
41
type Segment struct {
42
42
writer SegmentWriter
43
43
env runtime.Environment
44
- Properties properties.Map `json:"properties,omitempty" toml:"properties,omitempty"`
45
- Cache * cache.Config `json:"cache,omitempty" toml:"cache,omitempty"`
46
- Alias string `json:"alias,omitempty" toml:"alias,omitempty"`
44
+ Properties properties.Map `json:"properties,omitempty" toml:"properties,omitempty" yaml:"properties,omitempty" `
45
+ Cache * cache.Config `json:"cache,omitempty" toml:"cache,omitempty" yaml:"cache,omitempty" `
46
+ Alias string `json:"alias,omitempty" toml:"alias,omitempty" yaml:"alias,omitempty" `
47
47
styleCache SegmentStyle
48
48
name string
49
- LeadingDiamond string `json:"leading_diamond,omitempty" toml:"leading_diamond,omitempty"`
50
- TrailingDiamond string `json:"trailing_diamond,omitempty" toml:"trailing_diamond,omitempty"`
51
- Template string `json:"template,omitempty" toml:"template,omitempty"`
52
- Foreground color.Ansi `json:"foreground,omitempty" toml:"foreground,omitempty"`
53
- TemplatesLogic template.Logic `json:"templates_logic,omitempty" toml:"templates_logic,omitempty"`
54
- PowerlineSymbol string `json:"powerline_symbol,omitempty" toml:"powerline_symbol,omitempty"`
55
- Background color.Ansi `json:"background,omitempty" toml:"background,omitempty"`
56
- Filler string `json:"filler,omitempty" toml:"filler,omitempty"`
57
- Type SegmentType `json:"type,omitempty" toml:"type,omitempty"`
58
- Style SegmentStyle `json:"style,omitempty" toml:"style,omitempty"`
59
- LeadingPowerlineSymbol string `json:"leading_powerline_symbol,omitempty" toml:"leading_powerline_symbol,omitempty"`
60
- ForegroundTemplates template.List `json:"foreground_templates,omitempty" toml:"foreground_templates,omitempty"`
61
- Tips []string `json:"tips,omitempty" toml:"tips,omitempty"`
62
- BackgroundTemplates template.List `json:"background_templates,omitempty" toml:"background_templates,omitempty"`
63
- Templates template.List `json:"templates,omitempty" toml:"templates,omitempty"`
64
- ExcludeFolders []string `json:"exclude_folders,omitempty" toml:"exclude_folders,omitempty"`
65
- IncludeFolders []string `json:"include_folders,omitempty" toml:"include_folders,omitempty"`
66
- Needs []string `json:"-" toml:"-"`
67
- MinWidth int `json:"min_width,omitempty" toml:"min_width,omitempty"`
68
- MaxWidth int `json:"max_width,omitempty" toml:"max_width,omitempty"`
69
- Timeout time.Duration `json:"timeout,omitempty" toml:"timeout,omitempty"`
70
- Duration time.Duration `json:"-" toml:"-"`
71
- NameLength int `json:"-" toml:"-"`
72
- Interactive bool `json:"interactive,omitempty" toml:"interactive,omitempty"`
73
- Enabled bool `json:"-" toml:"-"`
74
- Newline bool `json:"newline,omitempty" toml:"newline,omitempty"`
75
- InvertPowerline bool `json:"invert_powerline,omitempty" toml:"invert_powerline,omitempty"`
76
- restored bool `json:"-" toml:"-"`
49
+ LeadingDiamond string `json:"leading_diamond,omitempty" toml:"leading_diamond,omitempty" yaml:"leading_diamond,omitempty" `
50
+ TrailingDiamond string `json:"trailing_diamond,omitempty" toml:"trailing_diamond,omitempty" yaml:"trailing_diamond,omitempty" `
51
+ Template string `json:"template,omitempty" toml:"template,omitempty" yaml:"template,omitempty" `
52
+ Foreground color.Ansi `json:"foreground,omitempty" toml:"foreground,omitempty" yaml:"foreground,omitempty" `
53
+ TemplatesLogic template.Logic `json:"templates_logic,omitempty" toml:"templates_logic,omitempty" yaml:"templates_logic,omitempty" `
54
+ PowerlineSymbol string `json:"powerline_symbol,omitempty" toml:"powerline_symbol,omitempty" yaml:"powerline_symbol,omitempty" `
55
+ Background color.Ansi `json:"background,omitempty" toml:"background,omitempty" yaml:"background,omitempty" `
56
+ Filler string `json:"filler,omitempty" toml:"filler,omitempty" yaml:"filler,omitempty" `
57
+ Type SegmentType `json:"type,omitempty" toml:"type,omitempty" yaml:"type,omitempty" `
58
+ Style SegmentStyle `json:"style,omitempty" toml:"style,omitempty" yaml:"style,omitempty" `
59
+ LeadingPowerlineSymbol string `json:"leading_powerline_symbol,omitempty" toml:"leading_powerline_symbol,omitempty" yaml:"leading_powerline_symbol,omitempty" `
60
+ ForegroundTemplates template.List `json:"foreground_templates,omitempty" toml:"foreground_templates,omitempty" yaml:"foreground_templates,omitempty" `
61
+ Tips []string `json:"tips,omitempty" toml:"tips,omitempty" yaml:"tips,omitempty" `
62
+ BackgroundTemplates template.List `json:"background_templates,omitempty" toml:"background_templates,omitempty" yaml:"background_templates,omitempty" `
63
+ Templates template.List `json:"templates,omitempty" toml:"templates,omitempty" yaml:"templates,omitempty" `
64
+ ExcludeFolders []string `json:"exclude_folders,omitempty" toml:"exclude_folders,omitempty" yaml:"exclude_folders,omitempty" `
65
+ IncludeFolders []string `json:"include_folders,omitempty" toml:"include_folders,omitempty" yaml:"include_folders,omitempty" `
66
+ Needs []string `json:"-" toml:"-" yaml:"-" `
67
+ MinWidth int `json:"min_width,omitempty" toml:"min_width,omitempty" yaml:"min_width,omitempty" `
68
+ MaxWidth int `json:"max_width,omitempty" toml:"max_width,omitempty" yaml:"max_width,omitempty" `
69
+ Timeout time.Duration `json:"timeout,omitempty" toml:"timeout,omitempty" yaml:"timeout,omitempty" `
70
+ Duration time.Duration `json:"-" toml:"-" yaml:"-" `
71
+ NameLength int `json:"-" toml:"-" yaml:"-" `
72
+ Interactive bool `json:"interactive,omitempty" toml:"interactive,omitempty" yaml:"interactive,omitempty" `
73
+ Enabled bool `json:"-" toml:"-" yaml:"-" `
74
+ Newline bool `json:"newline,omitempty" toml:"newline,omitempty" yaml:"newline,omitempty" `
75
+ InvertPowerline bool `json:"invert_powerline,omitempty" toml:"invert_powerline,omitempty" yaml:"invert_powerline,omitempty" `
76
+ restored bool `json:"-" toml:"-" yaml:"-" `
77
77
}
78
78
79
79
func (segment * Segment ) Name () string {
0 commit comments