commit 859b8fd
delthas
·
2022-04-29 15:45:32 +0000 UTC
parent 917f754
Enable specifying the size of disabled channel & member columns
2 files changed,
+12,
-2
+8,
-2
1@@ -216,8 +216,11 @@ func unmarshal(filename string, cfg *Config) (err error) {
2 if err != nil {
3 return err
4 }
5- if channels == 0 {
6+ if channels <= 0 {
7 cfg.ChanColEnabled = false
8+ if channels < 0 {
9+ cfg.ChanColWidth = -channels
10+ }
11 } else {
12 cfg.ChanColWidth = channels
13 }
14@@ -230,8 +233,11 @@ func unmarshal(filename string, cfg *Config) (err error) {
15 if err != nil {
16 return err
17 }
18- if members == 0 {
19+ if members <= 0 {
20 cfg.MemberColEnabled = false
21+ if members < 0 {
22+ cfg.MemberColWidth = -members
23+ }
24 } else {
25 cfg.MemberColWidth = members
26 }
+4,
-0
1@@ -116,10 +116,14 @@ pane-widths {
2 *channels*
3 The number of cells that the column for channels occupies on screen.
4 By default, 16. Use special value 0 to make the channel list horizontal.
5+ If the value is negative, the channel list will be horizontal by default
6+ and will take the positive (opposite) width value when toggled with F7.
7
8 *members*
9 The number of cells that that the column for the list of channel members
10 occupies on screen. By default, 16. Use special value 0 to disable.
11+ If the value is negative, the member list will be disabled by default
12+ and will take the positive (opposite) width value when toggled with F8.
13
14 *tls*
15 Enable TLS encryption. Defaults to true.