aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/aerc.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-02-22 20:10:54 +0100
committerRobin Jarry <robin@jarry.cc>2022-02-23 11:27:19 +0100
commit8935c452939cd707d7bd060292da502157625fa4 (patch)
tree508896a9cc225a0df55bd2a9b0631f6cf5d4eca2 /widgets/aerc.go
parentdf8c129235d9f26892caf89f056adc0e16b3d6b6 (diff)
downloadaerc-8935c452939cd707d7bd060292da502157625fa4.tar.gz
search/filter: display in extra status
Add an extra attribute to the status line. When non-empty, display it after the current status. Set that extra status after a successful :search or :filter. Remove it after :clear. Signed-off-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'widgets/aerc.go')
-rw-r--r--widgets/aerc.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/widgets/aerc.go b/widgets/aerc.go
index e644f827..10e9924c 100644
--- a/widgets/aerc.go
+++ b/widgets/aerc.go
@@ -392,6 +392,14 @@ func (aerc *Aerc) SetStatus(status string) *StatusMessage {
return aerc.statusline.Set(status)
}
+func (aerc *Aerc) SetExtraStatus(status string) {
+ aerc.statusline.SetExtra(status)
+}
+
+func (aerc *Aerc) ClearExtraStatus() {
+ aerc.statusline.ClearExtra()
+}
+
func (aerc *Aerc) SetError(status string) *StatusMessage {
return aerc.statusline.SetError(status)
}