From 3156d481feaffd2e6df6d860b980e9160b706e42 Mon Sep 17 00:00:00 2001 From: Jeffas Date: Sat, 7 Mar 2020 16:42:41 +0000 Subject: Add pinned tabs This adds the commands pin-tab and unpin-tab. Once pinned a tab lives on the left of the tabstrip and has a configurable marker, defaulting to ` before its name. --- config/aerc.conf.in | 5 +++++ config/config.go | 2 ++ 2 files changed, 7 insertions(+) (limited to 'config') diff --git a/config/aerc.conf.in b/config/aerc.conf.in index 39548cd..2f9f264 100644 --- a/config/aerc.conf.in +++ b/config/aerc.conf.in @@ -43,6 +43,11 @@ mouse-enabled=false # Default: yes new-message-bell=true +# Marker to show before a pinned tab's name. +# +# Default: ` +pinned-tab-marker=` + # Describes the format string to use for the directory list # # Default: %n %>r diff --git a/config/config.go b/config/config.go index 0393e46..5794388 100644 --- a/config/config.go +++ b/config/config.go @@ -31,6 +31,7 @@ type UIConfig struct { TimestampFormat string `ini:"timestamp-format"` ShowHeaders []string `delim:","` RenderAccountTabs string `ini:"render-account-tabs"` + PinnedTabMarker string `ini:"pinned-tab-marker"` SidebarWidth int `ini:"sidebar-width"` PreviewHeight int `ini:"preview-height"` EmptyMessage string `ini:"empty-message"` @@ -446,6 +447,7 @@ func LoadConfigFromFile(root *string, sharedir string) (*AercConfig, error) { "From", "To", "Cc", "Bcc", "Subject", "Date", }, RenderAccountTabs: "auto", + PinnedTabMarker: "`", SidebarWidth: 20, PreviewHeight: 12, EmptyMessage: "(no messages)", -- cgit 1.4.1-2-gfad0 in&id=8b9f1750c74c7d3cca99d6949a90cd61eb8e0218'>commit diff stats
path: root/tangle/002main.cc
blob: aaa91e6ff9496128a8919c2379fbd419729e0007 (plain) (blame)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52