From fb124139f3a84c03708079e45c2f7d41d6ededca Mon Sep 17 00:00:00 2001 From: Jeffas Date: Wed, 17 Jul 2019 21:51:02 +0100 Subject: Add option to always show mimetype in viewer A user may want to be able to see what mimetype they are viewing, so that they can determine what program it may be opened in or for some other reason. The config option is under the [viewer] section and is called 'always-show-mime'. It defaults to false to preserve the current behaviour. --- config/config.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'config/config.go') diff --git a/config/config.go b/config/config.go index 9e081fd8..6f3345d2 100644 --- a/config/config.go +++ b/config/config.go @@ -77,10 +77,11 @@ type FilterConfig struct { } type ViewerConfig struct { - Pager string - Alternatives []string - ShowHeaders bool `ini:"show-headers"` - HeaderLayout [][]string `ini:"-"` + Pager string + Alternatives []string + ShowHeaders bool `ini:"show-headers"` + AlwaysShowMime bool `ini:"always-show-mime"` + HeaderLayout [][]string `ini:"-"` } type AercConfig struct { -- cgit