diff options
Diffstat (limited to 'alot')
-rw-r--r-- | alot/commands/envelope.py | 7 | ||||
-rw-r--r-- | alot/defaults/alot.rc | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py index 38211c6c..7b189257 100644 --- a/alot/commands/envelope.py +++ b/alot/commands/envelope.py @@ -234,3 +234,10 @@ class EnvelopeSetCommand(Command): mail = ui.current_buffer.get_email() del(mail[self.key]) ui.current_buffer.set_email(mail) + + +@registerCommand(MODE, 'toggleheaders', + help='toggle display of all headers') +class ToggleHeaderCommand(Command): + def apply(self, ui): + ui.current_buffer.header_wgt.toggle_all() diff --git a/alot/defaults/alot.rc b/alot/defaults/alot.rc index 767ff829..e98c5b89 100644 --- a/alot/defaults/alot.rc +++ b/alot/defaults/alot.rc @@ -108,6 +108,7 @@ t = 'refine To' b = 'refine Bcc' c = 'refine Cc' select = reedit +H = toggleheaders [taglist-maps] |