From d2e74cdb91e140b50d14c3a8b315cde272f32587 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Tue, 27 Dec 2022 22:59:10 +0100 Subject: statusline: add column based render format In the spirit of commit 535300cfdbfc ("config: add columns based index format"), reuse the column definitions and table widget. Add automatic translation of render-format to column definitions. Allow empty columns to be compatible with the %m (mute) flag. Rename the State object to AccountState to be more precise. Reuse that object in state.TempateData to expose account state info. Move actual status line rendering in StatusLine.Draw(). Add new template fields for status specific data: {{.ConnectionInfo}} Connection state. {{.ContentInfo}} General status information (e.g. filter, search) {{.StatusInfo}} Combination of {{.ConnectionInfo}} and {{.StatusInfo}} {{.TrayInfo}} General on/off information (e.g. passthrough, threading, sorting) {{.PendingKeys}} Currently pressed key sequence that does not match any key binding and/or is incomplete. Display a warning on startup if render-format has been converted to status-columns. Signed-off-by: Robin Jarry Acked-by: Tim Culverhouse --- commands/account/import-mbox.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/account/import-mbox.go') diff --git a/commands/account/import-mbox.go b/commands/account/import-mbox.go index 5d6a0a0c..85e9a341 100644 --- a/commands/account/import-mbox.go +++ b/commands/account/import-mbox.go @@ -125,7 +125,7 @@ func (ImportMbox) Execute(aerc *widgets.Aerc, args []string) error { } infoStr := fmt.Sprintf("%s: imported %d of %d successfully.", args[0], appended, len(messages)) log.Debugf(infoStr) - aerc.SetStatus(infoStr) + aerc.PushSuccess(infoStr) } if len(store.Uids()) > 0 { -- cgit