From 4cc825860e3712644dfdbecb7c0cba7a00316bbb Mon Sep 17 00:00:00 2001 From: David Haukeness Date: Sat, 26 Oct 2019 14:12:46 -0600 Subject: [PATCH] added emoji config file support --- cmdSet.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmdSet.go b/cmdSet.go index 812fb48..fa7beba 100644 --- a/cmdSet.go +++ b/cmdSet.go @@ -73,14 +73,16 @@ func loadFromToml() { if _, err := os.Stat(configFile); os.IsNotExist(err) { configFile = "kbtui.toml" } - } printInfoF("Loading config from toml: $TEXT", messageAttachmentColor.stylize(configFile)) config, err := toml.LoadFile(configFile) if err != nil { - printError(fmt.Sprintf("Could not read config file: %+v", err)) + printError(fmt.Sprintf("I Could not read config file: %+v", err)) return } + if config.Has("Emoji.unicodeSupport") { + UNICODE_EMOJI_SUPPORT = config.Get("Emoji.unicodeSupport").(bool) + } colorless = config.GetDefault("Basics.colorless", false).(bool) if config.Has("Basics.colorless") { colorless = config.Get("Basics.colorless").(bool)