aboutsummaryrefslogtreecommitdiff
path: root/widgets
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-02-27 21:29:50 -0500
committerDrew DeVault <sir@cmpwn.com>2018-02-27 21:29:50 -0500
commit30c85dd4ab090ee6cec154ecd451129ecd6f0edb (patch)
tree774e2b8b1bdcc94d4dbb86a88654946284e457a9 /widgets
parentcab3771e17286788913255a6abe858b476166837 (diff)
Push commands to the status stack
Diffstat (limited to 'widgets')
-rw-r--r--widgets/aerc.go7
1 files 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()
})