aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorinwit <inwit@sindominio.net>2022-02-19 17:26:10 +0100
committerRobin Jarry <robin@jarry.cc>2022-02-19 18:07:33 +0100
commitc37f1eaaeaa1067365cff841e5c8298206db78ef (patch)
tree6bdd4b56eee926bc567e90a55e21751d07da7f22 /commands
parent287df9defb81745b12b531db91ff6363cb58edea (diff)
downloadaerc-c37f1eaaeaa1067365cff841e5c8298206db78ef.tar.gz
filter/search: display current search/filter arguments
Make the statusbar message after search and filter completion more informative by showing the full call that was used. Signed-off-by: inwit <inwit@sindominio.net>
Diffstat (limited to 'commands')
-rw-r--r--commands/account/search.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/commands/account/search.go b/commands/account/search.go
index 9a9244d4..be4df9d0 100644
--- a/commands/account/search.go
+++ b/commands/account/search.go
@@ -2,6 +2,7 @@ package account
import (
"errors"
+ "fmt"
"git.sr.ht/~rjarry/aerc/widgets"
)
@@ -34,14 +35,14 @@ func (SearchFilter) Execute(aerc *widgets.Aerc, args []string) error {
if args[0] == "filter" {
aerc.SetStatus("Filtering...")
cb = func(uids []uint32) {
- aerc.SetStatus("Filter complete.")
+ aerc.SetStatus(fmt.Sprintf("Filter complete %s", args))
acct.Logger().Printf("Filter results: %v", uids)
store.ApplyFilter(uids)
}
} else {
aerc.SetStatus("Searching...")
cb = func(uids []uint32) {
- aerc.SetStatus("Search complete.")
+ aerc.SetStatus(fmt.Sprintf("Search complete %s", args))
acct.Logger().Printf("Search results: %v", uids)
store.ApplySearch(uids)
// TODO: Remove when stores have multiple OnUpdate handlers