add mascot
This commit is contained in:
42
config.go
42
config.go
@@ -25,20 +25,23 @@ func (d *configDuration) UnmarshalText(text []byte) error {
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
Theme string `toml:"theme"`
|
||||
RefreshInterval configDuration `toml:"refresh_interval"`
|
||||
Repository string `toml:"repository"`
|
||||
ShowAll bool `toml:"show_all"`
|
||||
Limit int `toml:"limit"`
|
||||
Endpoint string `toml:"endpoint"`
|
||||
Display DisplayConfig `toml:"display"`
|
||||
Paths PathConfig `toml:"paths"`
|
||||
Threads ThreadConfig `toml:"threads"`
|
||||
Cache CacheConfig `toml:"cache"`
|
||||
Editing EditingConfig `toml:"editing"`
|
||||
CustomTheme CustomThemeConfig `toml:"custom_theme"`
|
||||
KeyBindings KeyBindings `toml:"keybindings"`
|
||||
AI AIConfig `toml:"ai"`
|
||||
Theme string `toml:"theme"`
|
||||
RefreshInterval configDuration `toml:"refresh_interval"`
|
||||
Repository string `toml:"repository"`
|
||||
ShowAll bool `toml:"show_all"`
|
||||
Limit int `toml:"limit"`
|
||||
Endpoint string `toml:"endpoint"`
|
||||
Mascot bool `toml:"mascot"`
|
||||
MascotExpressive bool `toml:"mascot_expressive"`
|
||||
MascotAnimated bool `toml:"mascot_animated"`
|
||||
Display DisplayConfig `toml:"display"`
|
||||
Paths PathConfig `toml:"paths"`
|
||||
Threads ThreadConfig `toml:"threads"`
|
||||
Cache CacheConfig `toml:"cache"`
|
||||
Editing EditingConfig `toml:"editing"`
|
||||
CustomTheme CustomThemeConfig `toml:"custom_theme"`
|
||||
KeyBindings KeyBindings `toml:"keybindings"`
|
||||
AI AIConfig `toml:"ai"`
|
||||
}
|
||||
|
||||
type CustomThemeConfig struct {
|
||||
@@ -97,10 +100,13 @@ type EditingConfig struct {
|
||||
|
||||
func defaultConfig() Config {
|
||||
return Config{
|
||||
Theme: "dark",
|
||||
RefreshInterval: configDuration{10 * time.Second},
|
||||
Limit: 50,
|
||||
Endpoint: "https://api.github.com/graphql",
|
||||
Theme: "dark",
|
||||
RefreshInterval: configDuration{10 * time.Second},
|
||||
Limit: 50,
|
||||
Endpoint: "https://api.github.com/graphql",
|
||||
Mascot: false,
|
||||
MascotExpressive: false,
|
||||
MascotAnimated: false,
|
||||
Display: DisplayConfig{
|
||||
FoldResolved: true,
|
||||
ThreadListWidthPercent: 33,
|
||||
|
||||
Reference in New Issue
Block a user