Documentation
¶
Index ¶
Constants ¶
View Source
const ( ParseErr = "$_parseErr" TextPayload = "message" )
View Source
const ( TypeString = "string" TypeBool = "bool" TypeNumber = "number" TypeDateTime = "datetime" )
Variables ¶
This section is empty.
Functions ¶
func GetBackgroundColorName ¶
func GetForegroundColorName ¶
Types ¶
type Color ¶
type Color struct { Foreground string `json:"foreground" yaml:"foreground"` Background string `json:"background" yaml:"background"` }
func (*Color) GetBackgroundColor ¶
func (c *Color) GetBackgroundColor() tcell.Color
func (*Color) GetForegroundColor ¶
func (c *Color) GetForegroundColor() tcell.Color
func (*Color) SetTextTagColor ¶
type Config ¶
type Config struct { Keys []Key `json:"keys" yaml:"keys"` LastSavedName string `json:"-" yaml:"-"` }
func MakeConfig ¶
func MakeConfigFromSample ¶
type Key ¶
type Key struct { Name string `json:"name" yaml:"name"` Type Type `json:"type" yaml:"type"` Layout string `json:"layout,omitempty" yaml:"layout,omitempty"` Color Color `json:"color,omitempty" yaml:"color,omitempty"` MaxWidth int `json:"max-width,omitempty" yaml:"max-width"` ColorWhen []ColorWhen `json:"color-when,omitempty" yaml:"color-when,omitempty"` }
func (*Key) ExtractValue ¶
Click to show internal directories.
Click to hide internal directories.