]> gitweb.michael.orlitzky.com - mutt.git/blob - sidebar
muttrc: add example "alternates" line.
[mutt.git] / sidebar
1 # Settings used only when the sidebar is visible.
2 set sidebar_visible
3 set mail_check_stats
4
5 # These hooks add 20 to the hooks in "no-sidebar" to account for the
6 # twenty columns that the sidebar takes up.
7 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)"'
8
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}F %-$my_col_subject.${my_col_subject}s (%-4.4c)"'
10
11 # This overrides the macro in "no-sidebar", so that Alt-s toggles the
12 # sidebar on and off by loading the (no-)sidebar config file in
13 # succession. The final "change-folder" command reloads the current
14 # folder, to ensure that the hook gets run to resize things.
15 macro index "\es" "<enter-command>source ~/.mutt/no-sidebar<enter><change-folder> =<enter>"