about summary refs log tree commit diff stats
path: root/config/config.go
diff options
context:
space:
mode:
authorJeffas <dev@jeffas.io>2019-07-17 21:51:02 +0100
committerDrew DeVault <sir@cmpwn.com>2019-07-17 17:34:43 -0400
commitfb124139f3a84c03708079e45c2f7d41d6ededca (patch)
tree042131a7f9ccaec78ed5de8a867ee5c22cb5b720 /config/config.go
parent4a5aa7dc27cd1b48db4d6211f74e909de1aa558d (diff)
downloadaerc-fb124139f3a84c03708079e45c2f7d41d6ededca.tar.gz
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.
Diffstat (limited to 'config/config.go')
-rw-r--r--config/config.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/config/config.go b/config/config.go
index 9e081fd..6f3345d 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 {
; 2008-05-19 15:05:46 +0100 committer Anselm R Garbe <garbeam@gmail.com> 2008-05-19 15:05:46 +0100 make it easier for the user, if Xinerama support is given, always use the screen 0 as window area/bar area, everything else can be used for floating clients' href='/acidbong/suckless/dwm/commit/config.mk?id=f22d047d4139ef889e95aabd0103e11357193e5a'>f22d047 ^
1076f2b
7b5638f ^
f22d047 ^
8420fb1 ^



d7e1708 ^
71fd06f ^


71fd06f ^
95766d6 ^
1076f2b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33