aboutsummaryrefslogblamecommitdiffstats
path: root/commands/msgview/toggle-headers.go
blob: 37f5b22ff91568c6940304465c9faca9e7eebeaa (plain) (tree)
1
2
3
4
5
6
7
8
9


               
                                    

 

                           
             
                                 

 
                                         


                                         
                                                   
                                                              


                          
package msgview

import (
	"git.sr.ht/~rjarry/aerc/app"
)

type ToggleHeaders struct{}

func init() {
	register(ToggleHeaders{})
}

func (ToggleHeaders) Aliases() []string {
	return []string{"toggle-headers"}
}

func (ToggleHeaders) Execute(args []string) error {
	mv, _ := app.SelectedTabContent().(*app.MessageViewer)
	mv.ToggleHeaders()
	return nil
}