commit 20e2f91f5f5ce52448bad934792bc6701bf58ac1
parent 783f4a8bb5eecb86b2c75e9123f4360fd8c24000
Author: Jaromil <jaromil@dyne.org>
Date: Sun, 17 Apr 2016 19:24:41 +0200
sidebar improvements, toggle visibility
Diffstat:
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/zlibs/email b/src/zlibs/email
@@ -572,7 +572,10 @@ color progress default magenta
bind index p sidebar-prev
bind index n sidebar-next
bind index <space> sidebar-open
-bind index S sidebar-toggle
+
+macro pager S "<enter-command>toggle sidebar_visible<enter>"
+macro index S "<enter-command>toggle sidebar_visible<enter>"
+
EOF
}
diff --git a/src/zlibs/helpers b/src/zlibs/helpers
@@ -243,7 +243,7 @@ open_folder() {
cat <<EOF > "$MAILDIRS/.mutt/notmuch"
set sidebar_width = 25
-set sidebar_visible = yes
+set sidebar_visible = no
color sidebar_new white default
color progress default magenta
@@ -251,16 +251,17 @@ color progress default magenta
bind index p sidebar-prev
bind index n sidebar-next
bind index <space> sidebar-open
-bind index S sidebar-toggle
bind index / vfolder-from-query
bind pager / vfolder-from-query
+macro pager S "<enter-command>toggle sidebar_visible<enter>"
+macro index S "<enter-command>toggle sidebar_visible<enter>"
+
set index_format="%2C %Z %?GI?%GI& ? %[%d/%b] %-16.16F (%4c) %?M?(%3M)& ? %s %>"
# for tags at end of index add %?g?%g?
set virtual_spoolfile = yes
virtual-mailboxes \
-"INBOX" "notmuch://?query=tag:inbox" \
" Today" "notmuch://?query= date:1d.. and tag:inbox" \
" Last week" "notmuch://?query= date:1w.. and tag:inbox" \
" Last month" "notmuch://?query=date:1M.. and tag:inbox" \