From 8635c70fda20b91f97c42f4e23e97bc01a14a89d Mon Sep 17 00:00:00 2001 From: Galen Abell Date: Tue, 23 Jul 2019 12:52:33 -0400 Subject: Add command history and cycling Aerc will keep track of the previous 1000 commands, which the user can cycle through using the arrow keys while in the ex-line. Pressing up will move backwards in history while pressing down will move forward. --- aerc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'aerc.go') diff --git a/aerc.go b/aerc.go index 2420b44..033de7b 100644 --- a/aerc.go +++ b/aerc.go @@ -148,7 +148,7 @@ func main() { return execCommand(aerc, ui, cmd) }, func(cmd string) []string { return getCompletions(aerc, cmd) - }) + }, &commands.CmdHistory) ui, err = libui.Initialize(conf, aerc) if err != nil { -- cgit v1.2.3