aboutsummaryrefslogtreecommitdiffstats
path: root/commands/account
diff options
context:
space:
mode:
Diffstat (limited to 'commands/account')
-rw-r--r--commands/account/clear.go4
-rw-r--r--commands/account/search.go9
2 files changed, 6 insertions, 7 deletions
diff --git a/commands/account/clear.go b/commands/account/clear.go
index 3fecc132..259a9de8 100644
--- a/commands/account/clear.go
+++ b/commands/account/clear.go
@@ -2,8 +2,8 @@ package account
import (
"errors"
+
"git.sr.ht/~rjarry/aerc/widgets"
- "time"
)
type Clear struct{}
@@ -30,6 +30,6 @@ func (Clear) Execute(aerc *widgets.Aerc, args []string) error {
return errors.New("Cannot perform action. Messages still loading")
}
store.ApplyClear()
- aerc.PushStatus("Clear complete.", 10*time.Second)
+ aerc.ClearExtraStatus()
return nil
}
diff --git a/commands/account/search.go b/commands/account/search.go
index e12f9725..86d9deac 100644
--- a/commands/account/search.go
+++ b/commands/account/search.go
@@ -3,7 +3,6 @@ package account
import (
"errors"
"fmt"
- "time"
"git.sr.ht/~rjarry/aerc/widgets"
)
@@ -34,16 +33,16 @@ func (SearchFilter) Execute(aerc *widgets.Aerc, args []string) error {
var cb func([]uint32)
if args[0] == "filter" {
- aerc.PushStatus("Filtering...", 10*time.Second)
+ aerc.SetExtraStatus("Filtering...")
cb = func(uids []uint32) {
- aerc.PushStatus(fmt.Sprintf("Filter complete %s", args), 20*time.Second)
+ aerc.SetExtraStatus(fmt.Sprintf("%s", args))
acct.Logger().Printf("Filter results: %v", uids)
store.ApplyFilter(uids)
}
} else {
- aerc.PushStatus("Searching...", 10*time.Second)
+ aerc.SetExtraStatus("Searching...")
cb = func(uids []uint32) {
- aerc.PushStatus(fmt.Sprintf("Search complete %s", args), 20*time.Second)
+ aerc.SetExtraStatus(fmt.Sprintf("%s", args))
acct.Logger().Printf("Search results: %v", uids)
store.ApplySearch(uids)
// TODO: Remove when stores have multiple OnUpdate handlers