X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mutt.git;a=blobdiff_plain;f=no-sidebar;fp=hooks;h=f3828b16a2c8f3665b78ce6b14b97055debdbb92;hp=83728ae5b29ad1c2e64ac31d10951039166c5393;hb=dd7bef18199b0a6e84da795aa5f1c9e7379bdce7;hpb=f9c0fd5e731110521eb5444eb9ef84efb9dab718 diff --git a/hooks b/no-sidebar similarity index 61% rename from hooks rename to no-sidebar index 83728ae..f3828b1 100644 --- a/hooks +++ b/no-sidebar @@ -1,3 +1,7 @@ +# Settings used only when the sidebar is NOT visible. +unset sidebar_visible +unset mail_check_stats + # The "33" is a magic number, totaling the number of characters in the # non-subject/author fields. # @@ -7,3 +11,9 @@ folder-hook .*[sS]ent.* 'set my_col_from = `echo $((30 * ($(tput cols)-33) / 100))`; set my_col_subject = `echo $((70 * ($(tput cols)-33) / 100))`; set index_format="%D | %Z %-$my_col_from.${my_col_from}t %-$my_col_subject.${my_col_subject}s (%-4.4c)"' folder-hook ! .*[sS]ent.* 'set my_col_from = `echo $((30 * ($(tput cols)-33) / 100))`; set my_col_subject = `echo $((70 * ($(tput cols)-33) / 100))`; set index_format="%D | %Z %-$my_col_from.${my_col_from}F %-$my_col_subject.${my_col_subject}s (%-4.4c)"' + +# This overrides the macro in "sidebar", so that Alt-s toggles the +# sidebar on and off by loading the (no-)sidebar config file in +# succession. The final "change-folder" command reloads the current +# folder, to ensure that the hook gets run to resize things. +macro index "\es" "source ~/.mutt/sidebar ="