summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2016-04-17 17:24:41 (GMT)
committer Jaromil <jaromil@dyne.org>2016-04-17 17:24:41 (GMT)
commit20e2f91f5f5ce52448bad934792bc6701bf58ac1 (patch)
treebaddaaf106f9140cfac741084cd22abb498a06c4
parent783f4a8bb5eecb86b2c75e9123f4360fd8c24000 (diff)
sidebar improvements, toggle visibility
-rwxr-xr-xsrc/zlibs/email5
-rwxr-xr-xsrc/zlibs/helpers7
2 files changed, 8 insertions, 4 deletions
diff --git a/src/zlibs/email b/src/zlibs/email
index 35f8d5c..d517db6 100755
--- 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
index 82a810a..80c8d7e 100755
--- 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" \