aboutsummaryrefslogtreecommitdiff
path: root/pkg/config/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/config/config.go')
-rw-r--r--pkg/config/config.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/config/config.go b/pkg/config/config.go
index 1b95f61..b24a9e8 100644
--- a/pkg/config/config.go
+++ b/pkg/config/config.go
@@ -37,6 +37,8 @@ var DefaultGlobalOptions = GlobalOptions{
type Options struct {
MinFreq *int `yaml:"min-frequency"`
InclImages *bool `yaml:"include-images"`
+ Disable *bool `yaml:"disable"`
+ IgnHash *bool `yaml:"ignore-hash"`
}
func (opt *Options) mergeFrom(other Options) {
@@ -46,6 +48,12 @@ func (opt *Options) mergeFrom(other Options) {
if opt.InclImages == nil {
opt.InclImages = other.InclImages
}
+ if opt.IgnHash == nil {
+ opt.IgnHash = other.IgnHash
+ }
+ if opt.Disable == nil {
+ opt.Disable = other.Disable
+ }
}
// Default feed options
@@ -57,6 +65,8 @@ func init() {
DefaultFeedOptions = Options{
MinFreq: &one,
InclImages: &fal,
+ IgnHash: &fal,
+ Disable: &fal,
}
}
r> 2018-06-10[i3] Remove obsolete pidgin stuffRené 'Necoro' Neumann2-36/+0 2018-06-10[zsh] Remove obsolete isabelle functionsRené 'Necoro' Neumann2-112/+0 2018-06-10Misc changesRené 'Necoro' Neumann3-0/+7 2018-06-10[git] Update email addressRené 'Necoro' Neumann1-1/+1 2018-06-10Enhance cci scriptRené 'Necoro' Neumann1-15/+12 2017-11-18Some windows setupRené 'Necoro' Neumann2-1/+6 2017-10-08[zsh] Use zcalc instead of bcRené 'Necoro' Neumann1-5/+4 2017-10-08[zsh] CalculatorRené 'Necoro' Neumann1-0/+8 2017-10-08Some vim changes.René 'Necoro' Neumann4-28/+17 2017-10-08Delete old stuff.René 'Necoro' Neumann5-71/+1