diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-10-18 16:42:49 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-10-18 16:43:15 +0100 |
commit | 2f5bf9a3afa3b189cfbfc28f127c7da05db989aa (patch) | |
tree | e48d0673f77ee5072659818d5b65d3dfb5e92e98 /alot | |
parent | 4a02603fef5f345fa682e6cd4ec3dee0b2d481ac (diff) |
toggleheaders in envelope buffer
issue #102
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] |