statusline: indicate when sorting is in progress
Indicate when sorting is in progress in the statusline. Signed-off-by: Koni Marti <koni.marti@gmail.com> Acked-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
parent
20218de913
commit
fc604b6679
3 changed files with 16 additions and 2 deletions
commands/account
|
@ -6,6 +6,7 @@ import (
|
|||
|
||||
"git.sr.ht/~rjarry/aerc/commands"
|
||||
"git.sr.ht/~rjarry/aerc/lib/sort"
|
||||
"git.sr.ht/~rjarry/aerc/lib/statusline"
|
||||
"git.sr.ht/~rjarry/aerc/widgets"
|
||||
"git.sr.ht/~rjarry/aerc/worker/types"
|
||||
)
|
||||
|
@ -82,9 +83,9 @@ func (Sort) Execute(aerc *widgets.Aerc, args []string) error {
|
|||
}
|
||||
}
|
||||
|
||||
aerc.SetStatus("Sorting")
|
||||
acct.SetStatus(statusline.Sorting(true))
|
||||
store.Sort(sortCriteria, func() {
|
||||
aerc.SetStatus("Sorting complete")
|
||||
acct.SetStatus(statusline.Sorting(false))
|
||||
})
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue