From aed2f5a9e626d726e256b6b3546c801b7c5eb565 Mon Sep 17 00:00:00 2001 From: Stefan Kropp Date: Sat, 1 Dec 2018 20:16:10 +0100 Subject: [PATCH] Configuration sidebar --- config/variable/05-007-sidebar_whitelist | 10 ++++++++ .../variable/05-008-sidebar_component_depth | 10 ++++++++ config/variable/05-009-sidebar_delim_chars | 10 ++++++++ config/variable/05-010-sidebar_folder_indent | 5 ++++ config/variable/05-011-sidebar_divider_char | 7 ++++++ config/variable/05-012-sidebar_format | 25 +++++++++++++++++++ config/variable/05-013-sidebar_indent_string | 6 +++++ config/variable/05-014-sidebar_new_mail_only | 5 ++++ config/variable/05-015-sidebar_next_new_wrap | 10 ++++++++ config/variable/05-016-sidebar_on_right | 5 ++++ config/variable/05-017-sidebar_short_path | 17 +++++++++++++ config/variable/05-018-sidebar_sort_method | 19 ++++++++++++++ config/variable/05-019-sidebar_visible | 8 ++++++ config/variable/05-020-sidebar_visible | 10 ++++++++ 14 files changed, 147 insertions(+) create mode 100644 config/variable/05-007-sidebar_whitelist create mode 100644 config/variable/05-008-sidebar_component_depth create mode 100644 config/variable/05-009-sidebar_delim_chars create mode 100644 config/variable/05-010-sidebar_folder_indent create mode 100644 config/variable/05-011-sidebar_divider_char create mode 100644 config/variable/05-012-sidebar_format create mode 100644 config/variable/05-013-sidebar_indent_string create mode 100644 config/variable/05-014-sidebar_new_mail_only create mode 100644 config/variable/05-015-sidebar_next_new_wrap create mode 100644 config/variable/05-016-sidebar_on_right create mode 100644 config/variable/05-017-sidebar_short_path create mode 100644 config/variable/05-018-sidebar_sort_method create mode 100644 config/variable/05-019-sidebar_visible create mode 100644 config/variable/05-020-sidebar_visible diff --git a/config/variable/05-007-sidebar_whitelist b/config/variable/05-007-sidebar_whitelist new file mode 100644 index 0000000..a1fa154 --- /dev/null +++ b/config/variable/05-007-sidebar_whitelist @@ -0,0 +1,10 @@ +# ------------------------------------------------------------------------- +# Name: sidebar_whitelist / unsidebar_whitelist +# ------------------------------------------------------------------------- +# The sidebar_whitelist command specifies mailboxes that will always be +# displayed in the sidebar, even if $sidebar_new_mail_only is set and the +# mailbox does not contain new mail. +# The unsidebar_whitelist command is used to remove a mailbox from the list +# of whitelisted mailboxes. Use “unsidebar_whitelist *” to remove all +# mailboxes. +# ------------------------------------------------------------------------- diff --git a/config/variable/05-008-sidebar_component_depth b/config/variable/05-008-sidebar_component_depth new file mode 100644 index 0000000..db6bfd4 --- /dev/null +++ b/config/variable/05-008-sidebar_component_depth @@ -0,0 +1,10 @@ +# ------------------------------------------------------------------------- +# Name: sidebar_component_depth +# ------------------------------------------------------------------------- +# By default the sidebar will show the mailbox's path, relative to the +# $folder variable. This specifies the number of parent directories to hide +# from display in the sidebar. For example: If a maildir is normally +# displayed in the sidebar as dir1/dir2/dir3/maildir, setting +# sidebar_component_depth=2 will display it as dir3/maildir, having +# truncated the 2 highest directories. +# ------------------------------------------------------------------------- diff --git a/config/variable/05-009-sidebar_delim_chars b/config/variable/05-009-sidebar_delim_chars new file mode 100644 index 0000000..32ccb01 --- /dev/null +++ b/config/variable/05-009-sidebar_delim_chars @@ -0,0 +1,10 @@ +# ------------------------------------------------------------------------- +# Name: sidebar_delim_chars +# ------------------------------------------------------------------------- +# This contains the list of characters which you would like to treat as +# folder separators for displaying paths in the sidebar. Local mail is +# often arranged in directories: `dir1/dir2/mailbox'. +# set sidebar_delim_chars='/' +# IMAP mailboxes are often named: `folder1.folder2.mailbox'. +# ------------------------------------------------------------------------- +# set sidebar_delim_chars='.' diff --git a/config/variable/05-010-sidebar_folder_indent b/config/variable/05-010-sidebar_folder_indent new file mode 100644 index 0000000..b663021 --- /dev/null +++ b/config/variable/05-010-sidebar_folder_indent @@ -0,0 +1,5 @@ +# ------------------------------------------------------------------------- +# Name: sidebar_folder_indent +# ------------------------------------------------------------------------- +# Set this to indent mailboxes in the sidebar. +# ------------------------------------------------------------------------- diff --git a/config/variable/05-011-sidebar_divider_char b/config/variable/05-011-sidebar_divider_char new file mode 100644 index 0000000..1c50efb --- /dev/null +++ b/config/variable/05-011-sidebar_divider_char @@ -0,0 +1,7 @@ +# ------------------------------------------------------------------------- +# Name: sidebar_divider_char +# ------------------------------------------------------------------------- +# This specifies the characters to be drawn between the sidebar (when +# visible) and the other NeoMutt panels. ASCII and Unicode line-drawing +# characters are supported. +# ------------------------------------------------------------------------- diff --git a/config/variable/05-012-sidebar_format b/config/variable/05-012-sidebar_format new file mode 100644 index 0000000..65b7b2f --- /dev/null +++ b/config/variable/05-012-sidebar_format @@ -0,0 +1,25 @@ +# ------------------------------------------------------------------------- +# Name: sidebar_format +# ------------------------------------------------------------------------- +# This variable allows you to customize the sidebar display. This string is +# similar to $index_format, but has its own set of printf(3)-like +# sequences: +# %B Name of the mailbox +# %S * Size of mailbox (total number of messages) +# %N * Number of unread messages in the mailbox +# %n N if mailbox has new mail, blank otherwise +# %F * Number of Flagged messages in the mailbox +# %! “!” : one flagged message; “!!” : two flagged messages; “n!” : n flagged messages (for n > 2). Otherwise prints nothing. +# %d * @ Number of deleted messages +# %L * @ Number of messages after limiting +# %t * @ Number of tagged messages +# %>X right justify the rest of the string and pad with “X” +# %|X pad to the end of the line with “X” +# %*X soft-fill with character “X” as pad +# * = Can be optionally printed if nonzero @ = Only applicable to the current folder +# +# In order to use %S, %N, %F, and %!, $mail_check_stats must be set. When +# thus set, a suggested value for this option is "%B%?F? [%F]?%* +# %?N?%N/?%S". + +set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S" diff --git a/config/variable/05-013-sidebar_indent_string b/config/variable/05-013-sidebar_indent_string new file mode 100644 index 0000000..6e02166 --- /dev/null +++ b/config/variable/05-013-sidebar_indent_string @@ -0,0 +1,6 @@ +# ------------------------------------------------------------------------- +# Name: sidebar_indent_string +# ------------------------------------------------------------------------- +# This specifies the string that is used to indent mailboxes in the +# sidebar. It defaults to two spaces. +# ------------------------------------------------------------------------- diff --git a/config/variable/05-014-sidebar_new_mail_only b/config/variable/05-014-sidebar_new_mail_only new file mode 100644 index 0000000..0823871 --- /dev/null +++ b/config/variable/05-014-sidebar_new_mail_only @@ -0,0 +1,5 @@ +# ------------------------------------------------------------------------- +# Name: sidebar_new_mail_only +# ------------------------------------------------------------------------- +# When set, the sidebar will only display mailboxes containing new, or +# flagged, mail. diff --git a/config/variable/05-015-sidebar_next_new_wrap b/config/variable/05-015-sidebar_next_new_wrap new file mode 100644 index 0000000..9f3e6f8 --- /dev/null +++ b/config/variable/05-015-sidebar_next_new_wrap @@ -0,0 +1,10 @@ +# ------------------------------------------------------------------------- +# Name: sidebar_next_new_wrap +# ------------------------------------------------------------------------- +# When set, the command will not stop and the end of +# the list of mailboxes, but wrap around to the beginning. The +# command is similarly affected, wrapping around to the +# end of the list. +# ------------------------------------------------------------------------- + + diff --git a/config/variable/05-016-sidebar_on_right b/config/variable/05-016-sidebar_on_right new file mode 100644 index 0000000..588587a --- /dev/null +++ b/config/variable/05-016-sidebar_on_right @@ -0,0 +1,5 @@ +# ------------------------------------------------------------------------- +# Name: sidebar_on_right +# ------------------------------------------------------------------------- +# When set, the sidebar will appear on the right-hand side of the screen. +# ------------------------------------------------------------------------- diff --git a/config/variable/05-017-sidebar_short_path b/config/variable/05-017-sidebar_short_path new file mode 100644 index 0000000..3ecd781 --- /dev/null +++ b/config/variable/05-017-sidebar_short_path @@ -0,0 +1,17 @@ +# ------------------------------------------------------------------------- +# Name: sidebar_short_path +# ------------------------------------------------------------------------- +# By default the sidebar will show the mailbox's path, relative to the +# $folder variable. Setting sidebar_shortpath=yes will shorten the names +# relative to the previous name. Here's an example: +# +# shortpath=no +# shortpath=yes shortpath=yes, folderindent=yes, indentstr=".." +# fruit fruit fruit +# fruit.apple +# apple ..apple +# fruit.banana +# banana ..banana +# fruit.cherry +# cherry ..cherry +# ------------------------------------------------------------------------- diff --git a/config/variable/05-018-sidebar_sort_method b/config/variable/05-018-sidebar_sort_method new file mode 100644 index 0000000..9cfec1f --- /dev/null +++ b/config/variable/05-018-sidebar_sort_method @@ -0,0 +1,19 @@ +# ------------------------------------------------------------------------- +# Name: sidebar_sort_method +# ------------------------------------------------------------------------- +# Specifies how to sort entries in the file browser. By default, the +# entries are sorted alphabetically. +# +# Valid values: +# ‐ alpha (alphabetically) +# ‐ count (all message count) +# ‐ flagged (flagged message count) +# ‐ name (alphabetically) +# ‐ new (unread message count) +# ‐ path (alphabetically) +# ‐ unread (unread message count) +# ‐ unsorted +# +# You may optionally use the “reverse-” prefix to specify reverse sorting +# order (example: “set sort_browser=reverse-date”). +# ------------------------------------------------------------------------- diff --git a/config/variable/05-019-sidebar_visible b/config/variable/05-019-sidebar_visible new file mode 100644 index 0000000..17a0d80 --- /dev/null +++ b/config/variable/05-019-sidebar_visible @@ -0,0 +1,8 @@ +# ------------------------------------------------------------------------- +# Name: sidebar_visible +# ------------------------------------------------------------------------- +# This specifies whether or not to show sidebar. The sidebar shows a list +# of all your mailboxes. +# ------------------------------------------------------------------------- +# +# set sidebar_visible = yes diff --git a/config/variable/05-020-sidebar_visible b/config/variable/05-020-sidebar_visible new file mode 100644 index 0000000..a396dfb --- /dev/null +++ b/config/variable/05-020-sidebar_visible @@ -0,0 +1,10 @@ +# ------------------------------------------------------------------------- +# Name: sidebar_width +# ------------------------------------------------------------------------- +# This controls the width of the sidebar. It is measured in screen +# columns. For example: sidebar_width=20 could display 20 ASCII +# characters, or 10 Chinese characters. +# ------------------------------------------------------------------------- +# +# set sidebar_width = 50 +