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 39548cd9..2f9f264c 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 0393e467..5794388a 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