I added a macro to my .muttrc that toggles the sidebar with b:

macro index b "<enter-command>toggle sidebar_visible<enter>"
macro pager b "<enter-command>toggle sidebar_visible<enter>"

FWIW, this would have also worked:

macro index, pager b "<enter-command>toggle sidebar_visible<enter>"

but in the pager, when I toggle the sidebar off, the page doesn't re-draw until I go back to the index, so instead of a sidebar I have a big swath of nothing, or the sidebar just pops up on top of the message, hiding 200px of it. Is there something I can add to this macro that will re-draw the screen when I toggle the sidebar?

  • random guess Does the <refresh> function help? – derobert Apr 5 '16 at 19:53
  • Aha. ctrl-l works. But <refresh> to the macro is giving me "<redraw-screen>: unknown variable" – Amanda Apr 5 '16 at 20:21

Seems I was looking for redraw-screen

macro pager b "<enter-command>toggle sidebar_visible <enter><redraw-screen>"
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.