]> gitweb.michael.orlitzky.com - mutt.git/blob - no-sidebar
keys: bind sidebar keys in the pager, too.
[mutt.git] / no-sidebar
1 # Settings used only when the sidebar is NOT visible.
2 unset sidebar_visible
3 unset mail_check_stats
4
5 # The "33" is a magic number, totaling the number of characters in the
6 # non-subject/author fields.
7 #
8 # We need a special rule for the "Sent" folder so it shows the "To"
9 # address instead of the "From" address.
10 #
11 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)"'
12
13 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)"'
14
15 # This overrides the macro in "sidebar", so that Alt-s toggles the
16 # sidebar on and off by loading the (no-)sidebar config file in
17 # succession. The final "change-folder" command reloads the current
18 # folder, to ensure that the hook gets run to resize things.
19 macro index "\es" "<enter-command>source ~/.mutt/sidebar<enter><change-folder> =<enter>"