aerc

Working clone of aerc-mail.org
git clone git://git.danielmoch.com/aerc.git
Log | Files | Refs | README | LICENSE

commit 30c85dd4ab090ee6cec154ecd451129ecd6f0edb
parent cab3771e17286788913255a6abe858b476166837
Author: Drew DeVault <sir@cmpwn.com>
Date:   Tue, 27 Feb 2018 21:29:50 -0500

Push commands to the status stack

Diffstat:
Mwidgets/aerc.go | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git 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() })