Files
aerc-inline-images/commands/close.go
T
2026-04-07 19:54:54 -04:00

29 lines
429 B
Go

package commands
import (
"git.sr.ht/~rjarry/aerc/app"
)
type Close struct{}
func init() {
Register(Close{})
}
func (Close) Description() string {
return "Close the focused tab."
}
func (Close) Context() CommandContext {
return MESSAGE_VIEWER | TERMINAL
}
func (Close) Aliases() []string {
return []string{"close"}
}
func (Close) Execute([]string) error {
app.RemoveTab(app.SelectedTabContent(), true)
return nil
}