From a8e0ed17b931763b7227030545b93ad82db4bd79 Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 26 Oct 2019 21:38:01 -0400 Subject: [PATCH] Add unicode_emojis flag to config --- defaultConfig.go | 1 + kbtui.toml | 1 + types.go | 7 ++++--- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/defaultConfig.go b/defaultConfig.go index 88d1b3e..5859e69 100644 --- a/defaultConfig.go +++ b/defaultConfig.go @@ -4,6 +4,7 @@ var defaultConfig = ` [basics] download_path = "/tmp/" colorless = false +unicode_emojis = true # The prefix before evaluating a command cmd_prefix = "/" diff --git a/kbtui.toml b/kbtui.toml index 6196e2e..a72723f 100644 --- a/kbtui.toml +++ b/kbtui.toml @@ -1,6 +1,7 @@ [basics] download_path = "/tmp/" colorless = false +unicode_emojis = true # The prefix before evaluating a command cmd_prefix = "/" diff --git a/types.go b/types.go index 744a14a..9ce3de3 100644 --- a/types.go +++ b/types.go @@ -28,9 +28,10 @@ type Config struct { // Basics holds the 'basics' section of the config file type Basics struct { - DownloadPath string `toml:"download_path"` - Colorless bool `toml:"colorless"` - CmdPrefix string `toml:"cmd_prefix"` + DownloadPath string `toml:"download_path"` + Colorless bool `toml:"colorless"` + CmdPrefix string `toml:"cmd_prefix"` + UnicodeEmojis bool `toml:"unicode_emojis"` } // Formatting holds the 'formatting' section of the config file