X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mutt.git;a=blobdiff_plain;f=sidebar;fp=sidebar;h=8cf5deca3f314f4cd51254f9dc93f415f866756f;hp=0000000000000000000000000000000000000000;hb=dd7bef18199b0a6e84da795aa5f1c9e7379bdce7;hpb=f9c0fd5e731110521eb5444eb9ef84efb9dab718 diff --git a/sidebar b/sidebar new file mode 100644 index 0000000..8cf5dec --- /dev/null +++ b/sidebar @@ -0,0 +1,15 @@ +# Settings used only when the sidebar is visible. +set sidebar_visible +set mail_check_stats + +# These hooks add 20 to the hooks in "no-sidebar" to account for the +# twenty columns that the sidebar takes up. +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 "no-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/no-sidebar ="