diff options
author | Reto Brunner <reto@labrat.space> | 2019-06-12 08:31:52 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-06-14 10:42:26 -0400 |
commit | 99c363b7249d52d484b736ef24dbc5bff70b86ae (patch) | |
tree | 51b3098091933e255e954fcc13bb25b1dbbfd378 /config | |
parent | 626f91c4832c097b7036d5063b2f0491397a9c70 (diff) | |
download | aerc-99c363b7249d52d484b736ef24dbc5bff70b86ae.tar.gz |
Set empty message in dirlist if no folder exist.
Diffstat (limited to 'config')
-rw-r--r-- | config/aerc.conf.in | 5 | ||||
-rw-r--r-- | config/config.go | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/config/aerc.conf.in b/config/aerc.conf.in index b07317fd..7758ebad 100644 --- a/config/aerc.conf.in +++ b/config/aerc.conf.in @@ -27,6 +27,11 @@ sidebar-width=20 # Default: (no messages) empty-message=(no messages) +# Message to display when no folders exists or are all filtered +# +# Default: (no folders) +empty-dirlist=(no folders) + [viewer] # # Specifies the pager to use when displaying emails. Note that some filters diff --git a/config/config.go b/config/config.go index 8e669f78..9295a1d0 100644 --- a/config/config.go +++ b/config/config.go @@ -26,6 +26,7 @@ type UIConfig struct { SidebarWidth int `ini:"sidebar-width"` PreviewHeight int `ini:"preview-height"` EmptyMessage string `ini:"empty-message"` + EmptyDirlist string `ini:"empty-dirlist"` } const ( @@ -259,6 +260,7 @@ func LoadConfig(root *string, sharedir string) (*AercConfig, error) { SidebarWidth: 20, PreviewHeight: 12, EmptyMessage: "(no messages)", + EmptyDirlist: "(no folders)", }, } // These bindings are not configurable |