From 30c85dd4ab090ee6cec154ecd451129ecd6f0edb Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 27 Feb 2018 21:29:50 -0500 Subject: Push commands to the status stack --- widgets/aerc.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/widgets/aerc.go b/widgets/aerc.go index 2168e61..beceb96 100644 --- a/widgets/aerc.go +++ b/widgets/aerc.go @@ -1,6 +1,7 @@ package widgets import ( + "fmt" "log" "time" @@ -45,14 +46,12 @@ func NewAerc(logger *log.Logger) *Aerc { grid.AddChild(statusbar).At(2, 1) statusline := NewStatusLine() - statusline.Push("test status!", 6 * time.Second) - statusline.Push("test error!", 3 * time.Second). - Color(tb.ColorRed, tb.ColorBlack) statusbar.Push(statusline) exline := NewExLine(func(command string) { + statusline.Push(fmt.Sprintf("TODO: execute %s", command), + 3 * time.Second) statusbar.Pop() - logger.Printf("TODO: execute command: %s\n", command) }, func() { statusbar.Pop() }) -- cgit 1.4.1-2-gfad0